Summary
Find the right sensor for your Arduino project with this guide to popular sensor modules. Compare their uses, approximate prices in India, interfaces, accuracy limitations, and beginner-friendly project idea
The best Arduino sensor depends on what your project needs to detect. Use a DHT11 or DHT22 for temperature and humidity, an HC-SR04 for distance, a PIR sensor for human movement, an LDR for light, and an MPU6050 for motion and orientation. Before buying, check the sensor's measurement range, interface, voltage compatibility, accuracy, and library support.
Arduino sensors let a microcontroller measure physical conditions and respond to changes. They can detect temperature, light, movement, distance, pressure, moisture, gas, and many other variables.
The right sensor makes a project easier to build and more reliable. This guide groups popular Arduino sensor modules by what they measure, explains their interfaces and limitations, and suggests projects for each.
How to Choose an Arduino Sensor
Check these five factors before selecting a sensor:
-
Measurement: What physical quantity do you need to detect?
-
Range and accuracy: Does the sensor measure the values your project needs?
-
Interface: Does it use an analog output, digital output, I2C, SPI, or another protocol?
-
Voltage compatibility: Can it safely connect to your Arduino board?
-
Software support: Is a suitable library available, or will you need to implement the communication protocol yourself?
For beginners, modules with clear documentation and example code are usually easier to work with than bare sensors.
1. Temperature and Humidity Sensors
These sensors measure environmental conditions. They are useful for weather stations, room monitoring, smart greenhouses, and temperature-controlled systems.
DHT11 — Temperature and Humidity
-
Price band: ₹40–₹100
-
Interface: Single-wire digital
-
Typical accuracy: Temperature ±2°C; humidity ±5% RH
-
Project idea: Build a room temperature and humidity display.
DHT11 is a low-cost starting point for basic environmental monitoring. Its limited measurement range and accuracy make it less suitable for precision applications.
DHT22 (AM2302) — Temperature and Humidity
-
Price band: ₹100–₹250
-
Interface: Single-wire digital
-
Typical accuracy: Temperature ±0.5°C; humidity around ±2–5% RH
-
Project idea: Build an indoor climate monitor with temperature alerts.
Choose DHT22 when you need a wider measurement range and better temperature accuracy than DHT11.
DS18B20 — Digital Temperature
-
Price band: ₹80–₹250
-
Interface: 1-Wire digital
-
Typical accuracy: ±0.5°C over its specified central range
-
Project idea: Monitor water temperature in a tank or aquarium.
The probe-style version is useful where the sensing element needs protection from moisture. Check the probe's sealing and temperature rating before using it in water.
BME280 — Temperature, Humidity and Pressure
-
Price band: ₹200–₹500
-
Interface: I2C or SPI
-
Typical accuracy: Temperature around ±1°C; humidity around ±3% RH; pressure around ±1 hPa under specified conditions
-
Project idea: Build a compact weather station that records pressure and estimates altitude changes.
BME280 combines three environmental measurements in one module. Verify the actual sensor chip because some inexpensive boards use different components.
2. Distance and Proximity Sensors
Distance sensors help robots avoid obstacles, measure gaps, detect nearby objects, and estimate liquid levels. The right option depends on range, surface, lighting, and whether the target needs to be detected or measured.
HC-SR04 — Ultrasonic Distance
-
Price band: ₹50–₹120
-
Interface: Trigger and echo digital pins
-
Typical accuracy: Often specified around ±3 mm under suitable conditions
-
Project idea: Build an obstacle-avoiding robot or a non-contact distance meter.
It measures distance from the time taken by an ultrasonic pulse to return. Soft, angled, or irregular surfaces can affect readings. The common module uses a 5V echo signal, so check compatibility with your board.
HC-SR501 — PIR Motion
-
Price band: ₹50–₹150
-
Interface: Digital HIGH/LOW output
-
Accuracy: Not expressed as distance accuracy; performance depends on motion, placement, and settings
-
Project idea: Switch on a light when a person enters a room.
A PIR sensor detects changes in infrared energy associated with moving warm objects. It detects motion, not the exact distance or identity of a person.
IR Obstacle Sensor — Near-Object Detection
-
Price band: ₹30–₹100
-
Interface: Usually digital; some modules provide analog output
-
Accuracy: Detection threshold varies with surface reflectivity, distance, and ambient light
-
Project idea: Detect obstacles or track a line with a small robot.
IR obstacle modules are inexpensive and easy to use, but their detection distance is usually short and varies with the target material and sensor adjustment.
VL53L0X — Time-of-Flight Distance
-
Price band: ₹150–₹450
-
Interface: I2C
-
Accuracy: Depends on distance, target reflectivity, ambient light, and module implementation
-
Project idea: Build a compact robot that measures distance to nearby objects.
This sensor estimates distance using the travel time of emitted light. It is useful when a small optical module is preferable to an ultrasonic sensor.
PIR vs IR vs Ultrasonic: Which Sensor Should You Use?
|
Requirement |
Best starting choice |
Why |
|---|---|---|
|
Detect human movement |
PIR (HC-SR501) |
Responds to changes in infrared energy |
|
Detect a nearby object |
IR obstacle sensor |
Simple, low-cost proximity detection |
|
Measure distance to an object |
HC-SR04 |
Estimates distance from sound travel time |
|
Compact optical distance measurement |
VL53L0X |
Uses time-of-flight light measurement |
|
Detect a line on the floor |
Reflective IR sensor |
Detects contrast between surfaces |
Important: A PIR sensor does not reliably detect a stationary person just because they are present. For presence detection without movement, consider a sensor designed for that purpose, such as a suitable mmWave radar module.
3. Light and Colour Sensors
Light sensors are useful for automatic lighting, line-following robots, object sorting, and displays that adjust to their surroundings.
LDR — Light Detection
-
Price band: ₹15–₹80
-
Interface: Analog voltage through a resistor divider; modules may also provide digital output
-
Accuracy: Relative light level; not a calibrated lux measurement
-
Project idea: Build an automatic night light.
An LDR changes resistance with light intensity. Pair it with a resistor to create a voltage divider that an Arduino analog input can read.
BH1750 — Ambient Light Intensity
-
Price band: ₹100–₹250
-
Interface: I2C
-
Accuracy: Provides a lux measurement; accuracy depends on the module, light spectrum, and operating conditions
-
Project idea: Automatically adjust display brightness based on room lighting.
Unlike a basic LDR circuit, the BH1750 reports a digital light-intensity value in lux, making it more useful when you need a quantitative reading.
TCS34725 — Colour Detection
-
Price band: ₹150–₹400
-
Interface: I2C
-
Accuracy: Measures red, green, blue, and clear-channel values; colour accuracy depends on illumination and calibration
-
Project idea: Build a robot that sorts coloured objects.
Use consistent lighting and calibrate the sensor against known colours for more repeatable results.
4. Motion, Tilt and Orientation Sensors
These sensors measure acceleration, rotation, tilt, or changes in movement. They are useful for robotics, gesture interfaces, vibration experiments, and motion tracking.
MPU6050 — Accelerometer and Gyroscope
-
Price band: ₹100–₹250
-
Interface: I2C
-
Accuracy: Configurable acceleration and angular-rate ranges; bias and drift require consideration
-
Project idea: Build a tilt-controlled robot or a self-balancing robot prototype.
The MPU6050 measures acceleration along three axes and angular velocity along three axes. It does not directly provide a perfectly stable compass heading.
ADXL345 — Acceleration and Tilt
-
Price band: ₹100–₹250
-
Interface: I2C or SPI
-
Accuracy: Depends on selected range, calibration, and sensor mounting
-
Project idea: Detect a device being tilted, shaken, or dropped.
It measures acceleration on three axes. Static tilt can be estimated from gravity when the device is not undergoing significant motion.
5. Soil, Water and Environmental Sensors
These modules help monitor plant conditions, water quality, leaks, and environmental changes. Their suitability depends on the measurement method and whether the sensor needs calibration or maintenance.
Capacitive Soil-Moisture Sensor
-
Price band: ₹50–₹180
-
Interface: Usually analog output
-
Accuracy: Relative moisture reading; calibration depends on soil type and conditions
-
Project idea: Build a smart plant monitor that alerts you when soil becomes dry.
Capacitive probes are often preferable to inexpensive exposed resistive probes because they reduce electrode corrosion. They still need calibration for meaningful moisture thresholds.
MQ-2 — Smoke and Flammable Gas Response
-
Price band: ₹80–₹200
-
Interface: Analog output; many modules also include a digital threshold output
-
Accuracy: Not a selective or calibrated gas concentration measurement without suitable calibration and conditions
-
Project idea: Build an educational gas-response indicator with a buzzer alert.
MQ-2 modules need warm-up time and can respond to several gases. They should not be treated as certified household gas alarms or life-safety equipment.
Water-Level Sensor — Liquid Detection
-
Price band: ₹25–₹100
-
Interface: Usually analog output; module versions vary
-
Accuracy: Typically a relative level or wet/dry indication, not a calibrated depth measurement
-
Project idea: Build a tank-level alert or an automatic water-refill prototype.
Basic conductive boards are inexpensive for demonstrations, but prolonged immersion can cause corrosion. For reliable long-term use, choose a sensor designed for the liquid and installation environment.
6. Sound, Touch and Magnetic Sensors
These sensors add interaction and event detection to Arduino projects.
Sound Sensor Module
-
Price band: ₹30–₹120
-
Interface: Usually digital threshold output; some modules provide analog output
-
Accuracy: Basic modules indicate relative sound level or threshold crossings, not calibrated sound pressure
-
Project idea: Build a clap-triggered LED or sound-activated display.
These modules are useful for simple sound events. For accurate decibel measurement, use a microphone and interface designed and calibrated for that purpose.
TTP223 — Capacitive Touch
-
Price band: ₹20–₹80
-
Interface: Digital output
-
Accuracy: Detects touch or proximity within its design limits; sensitivity depends on the module and installation
-
Project idea: Create a touch-controlled lamp or a simple touch button.
A capacitive touch module can replace a mechanical button in many simple interfaces, but nearby conductive materials and wiring can affect its response.
Hall-Effect Sensor — Magnetic Detection
-
Price band: ₹25–₹100
-
Interface: Usually digital output for switch-type modules
-
Accuracy: Depends on magnetic sensitivity, magnet strength, and placement
-
Project idea: Count wheel rotations or detect whether a door is open using a magnet.
Hall-effect switches detect magnetic fields without physical contact. For rotation counting, attach a magnet to the rotating part and count the output transitions.
Arduino Sensor Comparison Table
The following table brings the main choices together. Price bands are indicative Indian retail ranges for common modules, not guaranteed prices. Specifications vary by manufacturer and breakout board.
|
Sensor |
Measures |
Typical price |
Interface |
Accuracy / limitation |
|---|---|---|---|---|
|
DHT11 |
Temperature, humidity |
₹40–₹100 |
Digital |
±2°C; ±5% RH typical |
|
DHT22 |
Temperature, humidity |
₹100–₹250 |
Digital |
±0.5°C; humidity varies by spec |
|
DS18B20 |
Temperature |
₹80–₹250 |
1-Wire |
±0.5°C over specified central range |
|
BME280 |
Temperature, humidity, pressure |
₹200–₹500 |
I2C/SPI |
Check exact chip and datasheet |
|
HC-SR04 |
Distance |
₹50–₹120 |
Trigger/echo |
Often around ±3 mm under suitable conditions |
|
HC-SR501 |
Motion |
₹50–₹150 |
Digital |
Detects motion, not exact distance |
|
IR obstacle |
Nearby object |
₹30–₹100 |
Usually digital |
Surface and lighting dependent |
|
VL53L0X |
Optical distance |
₹150–₹450 |
I2C |
Depends on target and environment |
|
LDR |
Relative light |
₹15–₹80 |
Analog circuit |
Not a calibrated lux reading |
|
BH1750 |
Light intensity |
₹100–₹250 |
I2C |
Reports lux; check module specs |
|
TCS34725 |
Colour |
₹150–₹400 |
I2C |
Lighting and calibration dependent |
|
MPU6050 |
Acceleration, rotation |
₹100–₹250 |
I2C |
Bias and drift matter |
|
ADXL345 |
Acceleration |
₹100–₹250 |
I2C/SPI |
Range and calibration dependent |
|
Capacitive soil sensor |
Soil moisture |
₹50–₹180 |
Analog |
Requires soil-specific calibration |
|
MQ-2 |
Smoke and flammable gas response |
₹80–₹200 |
Analog/digital |
Not a certified safety detector |
|
Water-level board |
Liquid contact/level |
₹25–₹100 |
Analog |
Relative indication, not precise depth |
|
Sound module |
Sound events |
₹30–₹120 |
Analog/digital |
Not calibrated for decibels |
|
TTP223 |
Touch |
₹20–₹80 |
Digital |
Sensitivity varies |
|
Hall-effect switch |
Magnetic field presence |
₹25–₹100 |
Digital |
Magnet and placement dependent |
These ranges align broadly with Indian component listings, where basic LDR, IR, water-level, and PIR modules can cost tens of rupees, while more capable environmental and motion modules cost more. Prices change by seller, sensor version, and whether the listing is for a bare component or a breakout module.
Which Arduino Sensors Are Best for Beginners?
If you are buying your first few modules, start with sensors that are inexpensive, well documented, and easy to test.
|
Priority |
Sensor |
Why start with it? |
|---|---|---|
|
1 |
LDR |
Teaches analog input and voltage dividers |
|
2 |
HC-SR04 |
Introduces digital timing and distance calculation |
|
3 |
DHT11 |
Teaches digital sensor libraries |
|
4 |
PIR HC-SR501 |
Introduces event-based input |
|
5 |
Capacitive soil-moisture sensor |
Teaches analog readings and calibration |
|
6 |
MPU6050 |
Introduces I2C and multi-axis data |
A basic five-sensor kit can also be a cost-effective starting point. Some kits bundle an HC-SR04, PIR, IR obstacle sensor, DHT11, and soil-moisture sensor. One Indian listing for a five-in-one kit is around ₹300, though kit contents and quality vary.
Do Arduino Sensors Need Libraries?
Some do, and some do not. The interface determines how you read the sensor, but a library can simplify communication and convert raw data into usable measurements.
-
Analog sensors: Often read with
analogRead()and interpreted or calibrated in your code. -
Digital threshold modules: Often read with
digitalRead(). -
I2C sensors: Commonly use a library to configure registers and convert measurements.
-
SPI sensors: Often use a device-specific library or driver.
-
1-Wire sensors: Commonly use a library to handle timing and data conversion.
For example, an LDR voltage divider can be read using analogRead(), while a BME280 typically needs a compatible sensor library to return temperature, humidity, and pressure values. Always check whether the library supports your exact sensor chip and Arduino board.
How to Choose the Right Sensor for Your Arduino Project
Use this checklist before ordering a sensor:
-
Define the measurement. Decide whether you need temperature, distance, motion, light, moisture, or another input.
-
Check the required range. A sensor must cover the values your project will encounter.
-
Check accuracy and resolution. These are different: resolution describes the smallest reported change, while accuracy describes how close the measurement is to the true value.
-
Verify voltage compatibility. Check both supply voltage and output logic level before connecting the module.
-
Check the interface. Confirm that your Arduino has the required analog inputs, digital pins, I2C, or SPI connections.
-
Review library support. Make sure example code is available for your board and sensor.
-
Consider the environment. Water, dust, sunlight, heat, and electrical noise can affect performance.
For a first project, choose a sensor with a clear datasheet, working examples, and a simple interface. More expensive sensors are not automatically better if a basic module meets the project's requirements.
Excerpt
Frequently Asked Questions
1. What sensors work with Arduino?
Arduino can work with analog, digital, I2C, SPI, and other compatible sensors. Common choices include the DHT11 for temperature and humidity, HC-SR04 for distance, PIR for motion, LDR for light, MPU6050 for acceleration and rotation, and capacitive probes for soil moisture. Check voltage and interface compatibility before connecting a sensor.
2. Which sensor should I use to detect people?
Use a PIR sensor such as the HC-SR501 when you need to detect movement from people in a room. It does not identify people or reliably detect a stationary person. For presence detection without movement, consider an appropriate mmWave radar or other presence sensor.
3. What is the cheapest sensor to start with?
An LDR or basic IR module is usually among the cheapest options. An LDR is useful for learning analog inputs and automatic lighting, while an IR obstacle module can introduce digital detection. Typical module prices start at around ₹15–₹35, depending on the seller and version.
4. Do Arduino sensors need libraries?
Not all sensors need libraries. Basic analog sensors and digital threshold modules can often be read using built-in functions such as analogRead() and digitalRead(). More complex sensors, especially those using I2C, SPI, or 1-Wire, are often easier to use with a compatible library.
analogRead() and digitalRead(). More complex sensors, especially those using I2C, SPI, or 1-Wire, are often easier to use with a compatible library.