
Meet Butlr
Discover what spatial intelligence can do for you.
Thank you! Your submission has been received!
This guide helps hobbyists and homelab builders create reliable sensor projects for temperature, humidity, CO2, and simple motion/security using ESP32 and Raspberry Pi. No prior hardware experience required — focus on simple, privacy-friendly setups that scale.
Quick parts overview (common to most projects)
Microcontrollers and SBCs
- ESP32 (Wi‑Fi microcontroller) for battery or wired sensor nodes
- Raspberry Pi (3/4/Zero) for gateways, local processing, or alarm logic
Sensors
- Temperature/humidity: SHT3x, HTU21D, or high-quality digital sensors
- CO2: Sensirion SCD4x series (recommended for accuracy and ease of integration)
- Motion/occupancy: PIR sensors (HC-SR501 style) for simple motion
- Privacy-first option: anonymous heat/thermal sensors for occupancy analytics
Connectivity and power
- Breadboard, jumper wires, screw terminals
- 5V USB power supplies, Li-ion packs or AA battery holders for mobile nodes
- Level shifters and pull-up resistors when needed
Tools and accessories
- Small soldering iron, heat-shrink, enclosures, foam or silicone gaskets for moisture protection
Project 1 — Temp & Humidity Monitor
Parts list
- ESP32 development board
- SHT3x or HTU21D temperature and humidity sensor (digital I2C)
- 4-pin JST cable, small enclosure, optional LiPo battery and charger
Hardware and wiring (high level)
Connect sensor VCC to 3.3V, GND to ground, SDA to ESP32 SDA pin, SCL to ESP32 SCL pin. Use short wires for stable I2C readings and add a small pull-up resistor if your breakout lacks one. Mount the sensor through a vented hole in an enclosure to avoid heat buildup.
Integrating with Home Assistant and MQTT
Configure the ESP32 to publish measurements to an MQTT broker on a regular interval (for example, every 30–60 seconds). In Home Assistant, add MQTT sensor entities for temperature and humidity and configure thresholds, automations, and logs. Keep MQTT and Home Assistant local to avoid cloud dependencies.
Expected cost and build time
- Estimated cost: $15–40 per node depending on sensor and enclosure quality
- Build time: 30–60 minutes for first node, 10–20 minutes for additional nodes
Advanced tips
- Add simple sleep cycles on battery-powered ESP32 to extend battery life
- Calibrate sensors against a trusted thermometer/hygrometer and log offsets over a week
Project 2 — Smart CO2 Monitor
Parts list
- ESP32 or Raspberry Pi (for heavier processing)
- Sensirion SCD4x CO2 sensor for accurate, factory-calibrated readings
- Enclosure with inlet vents and optional small fan for airflow
Wiring and calibration notes
SCD4x communicates over I2C; wire similarly to temp sensors and power from 3.3V or the board’s recommended supply. Follow the manufacturer’s warm-up/conditioning procedure on first use and allow the sensor to run for a few hours before relying on readings. Periodically perform baseline checks in well-ventilated outdoor air if recommended.
Placement and use cases
Place CO2 sensors at breathing height in rooms you occupy most often. Use CO2 thresholds as a proxy for ventilation needs and combine with automation to trigger HVAC or fans when CO2 rises above set points.
Expected cost and build time
- Estimated cost: $80–160 depending on model and enclosure
- Build time: 45–90 minutes including setup and initial calibration
Advanced notes
- CO2 readings drift slowly — schedule periodic checks and log long-term trends
- Consider adding temperature/humidity alongside CO2 for more useful indoor-air-quality monitoring