Fall 2025 Inquiry Miner Mayhem Programs
The purpose of this lesson is to introduce students to using sensors to read data on an Arduino. By the end of the lesson, students will learn:
What sensors are and how they work
How to use variables in Arduino programming
The basics of inputs and outputs in electrical components
How to use sensor data to control other devices through an Arduino
How to utilize the Arduino serial monitor to view and analyze data
1x Arduino Mega R3
1x USB A-to-USB B cable
1x Breadboard
1x LED (any color)
1x 220Ω resistor
1x potentiometer
Male to Male (M-M) wires
Chromebook or laptop for each student
Arduino IDE installed or
Access to Arduino web editor with Arduino Create Agent installed
Data/Data signal: Information collected about a physical quantity. This can be a numerical value, such as voltage, or a state, such as true/false or high/low.
Digital Data: Information that exists in two distinct states: high or low, represented as true/false, 1/0, or 5V/ground. When reading a digital signal, only these two possible values are possible.
Analog Data: Information that can vary continuously between two values, rather than being limited to just two states like digital data. In the case of an Arduino, the data can range between 0V and 5V.
Input: A data signal received by a device. In an Arduino, an input occurs when the Arduino receives a signal from a sensor for processing.
Output: A data signal transmitted from a device, such as the Arduino when it sends an output signal to control a device like an LED.
Variable: A storage location in Arduino used to hold data. A variable must be given a name before it can be used to store information.
Serial Communication: A method for transferring data between microcontrollers and computers, enabling the transmission of large amounts of information.
Using the Arduino Web Editor
Introduction to Programming an Arduino
Arduino Syntax
Similar Activities
As you write the code for your students, you may write the code alongside them, sharing your own screen to see exactly where each line goes. The downloadable code is intended for your reference while following the activity.
If you find that the activity is not properly working, make sure to double check you/your students' wiring and code against ours. Working with electronics and Arduinos can be difficult and much of the learning process (for students and teachers) is in the troubleshooting. That being said, if it seems like the activity is still not working or you are stuck, let us know! Send us an email and we will work to troubleshoot as much as possible!