Sensors are where projects meet the real world — and where most wiring mistakes happen. These guides cover the popular modules (BME280, MPU6050, DHT22, ultrasonic, and dozens more) with pinouts, working code for Arduino, ESP32, and Pi, plus the calibration tricks that turn noisy readings into trustworthy data. All the featured sensors ship pre-soldered below.
Shop the parts used in these tutorials
BME280 Pre-Soldered Temperature, Pressure & Humidity Sensor for Arduino & Raspberry Pi
$10.99
MPU6050 Pre-Soldered IMU Accelerometer Sensor 2-Pack for Arduino
$10.99
DHT22 Temperature & Humidity Sensor for Arduino & Raspberry Pi
$8.00
HC-SR04 Ultrasonic Distance Sensor Module 4-Pin for Arduino & Raspberry Pi
$4.49Arduino BMP180: Real-Time Dashboard with Node-RED
Build a live temperature and pressure dashboard using an Arduino and a BMP180 sensor with Node-RED so you can monitor sensor data...
Raspberry Pi Pico W BME280: Stream data to Azure IoT
Build a Raspberry Pi Pico W + BME280 pipeline that streams real-time sensor data to Azure IoT Hub and Azure Data Explorer...
Arduino BME280: Publish ROS 2 Topic on Raspberry Pi
Build an Arduino BME280 serial bridge and publish live temperature, humidity, and pressure to a ROS 2 topic on Raspberry Pi, with...
Raspberry Pi Pico W Ultrasonic Sensor: Remote Robot Drive
Build a Raspberry Pi Pico W Wi-Fi robot control page with ultrasonic emergency stop and NeoPixel feedback, using an async MicroPython web...
Raspberry Pi Pico W HC-SR04: Obstacle Detection LEDs
Build Raspberry Pi Pico W obstacle detection with an HC-SR04 ultrasonic sensor and Neopixel LED proximity colors in MicroPython, with help from...
Raspberry Pi Pico W HC-SR04: Robot Assembly Guide
Assemble a Raspberry Pi Pico W robot with an L298N motor driver and HC-SR04 ultrasonic sensor, then tidy wiring with zip ties...
Raspberry Pi Pico HC-SR501 PIR: Motion LED Trigger
Build a Raspberry Pi Pico + HC-SR501 PIR motion sensor project that turns an LED on when movement is detected, using simple...
Raspberry Pi KY-037: Toggle an LED with sound
Build a Raspberry Pi KY-037 sound sensor project that toggles an LED on each snap or clap, a simple GPIO control pattern...
Raspberry Pi KY-037: Detect Sound in Python
Build a Raspberry Pi KY-037 sound sensor trigger in Python to detect noise from a digital output and tune sensitivity fast using...
STM32 Blue Pill MPU6050: Read data and calibrate gyro
Connect an STM32 Blue Pill to an MPU6050 over I2C, print raw accel and gyro data in Arduino, and apply simple gyro...
Raspberry Pi ADS1115: Read MQ-135 Analog Voltage
Build a Raspberry Pi ADS1115 setup to read MQ-135 analog voltage over I2C in Python, enabling accurate air quality monitoring with ShillehTek...
Raspberry Pi Pico BH1750: Measure Ambient Light in Lux
Build a Raspberry Pi Pico/Pico W BH1750 lux meter in MicroPython to measure ambient light for smart lighting and light-aware projects with...