Simple Sensor Projects
Learn to use different sensors with Arduino through hands-on projects for beginners.
Why Learn Sensors?
Sensors are the eyes, ears, and touch of a robot. Without sensors, a robot cannot interact with the world around it.
Learning to use sensors is one of the most important skills in robotics.
These projects will teach you how to connect, read, and use data from different types of sensors.
Project 1: Distance Measurement with Ultrasonic Sensor
Measure the distance to objects using the HC-SR04 ultrasonic sensor.
Components: Arduino Uno, HC-SR04 Ultrasonic Sensor, Breadboard, Jumper Wires
Connect Trig to pin 7 and Echo to pin 8. VCC to 5V and GND to GND.
The code sends a pulse on Trig, measures the time on Echo, and calculates distance.
Display the distance on the Serial Monitor. This is the same sensor used in obstacle avoiding robots.
Project 2: Temperature and Humidity Monitor
Read temperature and humidity using the DHT11 sensor and display it on the Serial Monitor.
Components: Arduino Uno, DHT11 Sensor, 10K Resistor, Breadboard, Jumper Wires
The DHT11 sensor measures both temperature (0-50 degrees C) and humidity (20-80%).
Install the DHT library in Arduino IDE to easily read sensor data.
This project teaches you how to use libraries and read analog sensor data.
Project 3: Light Level Detector
Detect light levels using a Light Dependent Resistor (LDR) and control an LED based on brightness.
Components: Arduino Uno, LDR, 10K Resistor, 1 LED, 220 ohm Resistor, Breadboard
Connect the LDR in a voltage divider circuit with the 10K resistor to an analog pin.
Use analogRead() to get the light level (0-1023).
When light is low (value below threshold), turn on the LED automatically.
This is how automatic street lights and light-following robots work.
Project 4: Motion Detection Alarm
Build a simple security alarm using a PIR motion sensor and a buzzer.
Components: Arduino Uno, PIR Motion Sensor, Buzzer, LED, Breadboard, Jumper Wires
The PIR sensor detects movement of warm objects (like people) within its range.
When motion is detected, the sensor output goes HIGH.
Program Arduino to sound the buzzer and light the LED when motion is detected.
This project teaches event-based programming — responding to sensor triggers.
Project 5: Soil Moisture Monitor
Monitor soil moisture levels for an automatic plant watering system.
Components: Arduino Uno, Soil Moisture Sensor, Relay Module, Small Water Pump, Breadboard
Insert the moisture sensor probes into the soil.
Read the analog value — dry soil gives high values, wet soil gives low values.
When the soil is too dry, activate the relay to turn on the water pump.
This project combines sensor reading with actuator control — a key robotics concept.
Simple Summary
Sensor projects teach you how robots perceive the world around them.
Start with simple sensors like ultrasonic and LDR before moving to more complex ones.
Each project builds on the previous one, adding new skills and concepts.
These sensor skills are directly used in building robots that can navigate, detect, and respond to their environment.
!Key Points
- Ultrasonic sensors measure distance using sound waves
- DHT11 measures temperature and humidity with a simple library
- LDR detects light levels using analog input
- PIR sensors detect motion of warm objects
- Sensor data drives robot decisions and actions
