Disclosure: As an Amazon Associate we earn from qualifying purchases. Buying through our links costs you nothing extra.
Sensors turn a Raspberry Pi into a weather station, security system or smart-home brain. Here’s a practical Raspberry Pi sensors list: what each sensor does, how it connects, and the quickest way to test it.
Easiest way to start: a 37-in-1 sensor kit + breadboard with jumpers covers most of the sensors below. Remember: Raspberry Pi GPIO is 3.3V; 5V sensor outputs need a level shifter or voltage divider.
Temperature, light, sound, touch, IR, joystick, buzzer, relay and more in one box: ideal for students.
Check price on Amazon
Raspberry Pi sensors list
| Sensor | Measures | Interface | Example project |
|---|---|---|---|
| DHT11 / DHT22 | Temperature & humidity | Single GPIO | Room/weather monitor |
| DS18B20 | Temperature (waterproof option) | 1-Wire | Aquarium, water tank temp |
| BMP280 / BME280 | Pressure (+humidity on BME280) | I2C | Weather station, altimeter |
| HC-SR501 PIR | Human motion | GPIO | Security alarm, auto lights |
| HC-SR04 | Distance (ultrasonic) | GPIO (echo needs divider) | Smart dustbin, parking sensor |
| LDR / BH1750 | Light level | ADC / I2C | Auto night light |
| MQ-2 / MQ-135 | Smoke, gas, air quality | Analog (via ADC) | Gas leak alarm |
| Soil moisture | Soil wetness | Analog (via ADC) | Plant watering |
| Sound sensor | Noise level | GPIO / analog | Clap switch |
| IR receiver | TV remote signals | GPIO | Remote-controlled projects |
| Reed switch | Door/window open | GPIO | Door alarm |
| MPU6050 | Motion, tilt (accelerometer/gyro) | I2C | Self-balancing robot |
| RFID RC522 | RFID cards/tags | SPI | Attendance system |
| Camera Module 3 | Images/video | CSI camera port | Face recognition, CCTV |
| Current sensor (ACS712) | Electric current | Analog (via ADC) | Energy meter |

Actuators & output modules
- Relay module: switch lamps/fans (adult supervision for mains!).
- SG90 servo: precise movement for robot arms, locks.
- Buzzer, LEDs, RGB LED: alerts and indicators.
- 0.96″ OLED display: show readings without a monitor.
- DC motors + motor driver: robot cars.
How to connect sensors to Raspberry Pi
- Digital GPIO (PIR, button, DHT): connect VCC, GND and the signal pin; read in Python with
gpiozero. - I2C (BMP280, BME280, OLED, MPU6050): connect SDA (GPIO2) and SCL (GPIO3); enable I2C in Raspberry Pi Configuration → Interfaces; check with
i2cdetect -y 1. - 1-Wire (DS18B20): enable 1-Wire, then find the sensor under
/sys/bus/w1/devices/. - Analog sensors (gas, soil, LDR): the Pi has no analog input. Use an ADC chip like the ADS1115 or MCP3008.
- Neat wiring: a GPIO screw-terminal board avoids loose jumper wires.

Useful commands
| Command | What it does |
|---|---|
| pinout | Shows the GPIO pin map of your Pi |
| i2cdetect -y 1 | Lists connected I2C devices and addresses |
| vcgencmd measure_temp | Shows the Pi’s own CPU temperature |
| pip install gpiozero adafruit-blinka | Installs common sensor libraries |
Raspberry Pi sensors with Home Assistant
Run Home Assistant on a Pi 5 and add ESPHome sensors (built on ESP32 boards) around the house: temperature in every room, motion lights and door alerts on one dashboard. More ideas in our Raspberry Pi uses guide.

Budget pick: cheapest Raspberry Pi boards (under ₹1,000 to ₹6,000)
All the sensors on this list work with the cheapest Raspberry Pi boards too. A Pico or Pico W reads most of them directly, and a Zero W or 3B+ is enough if you want Linux and Python.
Cheapest Raspberry Pi. Microcontroller for LEDs, sensors and robots.
Check today’s price on Amazon
Adds Wi-Fi for IoT projects; includes starter parts.
Check today’s price on Amazon
Budget desktop board with full-size HDMI and 4 USB ports.
Check today’s price on Amazon
See every model with old vs current rupee prices: Raspberry Pi price in India 2026–2027.
Related guides
Frequently asked questions
Which sensors can be used with Raspberry Pi?
Temperature/humidity (DHT22, BME280), motion (PIR), distance (HC-SR04), gas (MQ series), light, soil moisture, RFID, accelerometers and cameras.
Can Raspberry Pi read analog sensors?
Not directly. Use an ADC such as the ADS1115 or MCP3008.
Can I connect 5V sensors to Raspberry Pi?
Power is fine, but signal outputs must be 3.3V; use a level shifter or voltage divider.
How do I check if an I2C sensor is detected?
Enable I2C and run i2cdetect -y 1 to see the device address.
Which sensor kit is best for beginners?
A 37-in-1 sensor module kit with a breadboard and jumper wires.




