Who this guide is for
This guide is for homelab hobbyists, makers, and tinkerers who want reliable environmental and telemetry sensing in a home, garage, boat, or small building. You should be comfortable with basic electronics, networking basics such as Wi‑Fi and MQTT, and a single-board computer like a Raspberry Pi or a microcontroller such as an ESP32. Beginners will find clear parts lists and practical tips; intermediate users will find integration and scaling guidance.
Common sensor types and when to use them
Temperature & humidity (DS18B20, BME280)
Choose sensors based on cost, accuracy, and deployment environment. DS18B20 is a robust, waterproof option for one-point temperature sensing and is low cost and easy to wire. BME280 provides temperature, humidity, and barometric pressure for indoor climate monitoring and HVAC experiments.
- When to use: environmental monitoring, freezer alerts, greenhouse or lab racks. Use multiple sensors for spatial coverage.
CO2 (Sensirion SCD4x) — accuracy & calibration
Sensirion SCD4x family provides high-quality CO2 sensing with good long-term stability. Factory-calibrated models reduce maintenance; periodic fresh-air reference checks help maintain accuracy.
- When to use: indoor air quality monitoring, ventilation control, and occupancy estimation when combined with other sensors.
Motion/PIR — basic security alarm
Passive Infrared sensors detect heat changes and movement, are inexpensive and low-power but can false-trigger from drafts or pets. Use complementary sensors to improve reliability.
- When to use: simple occupancy detection, DIY alarm prototypes, hallway and room presence sensors.
NMEA sensors for boats/vehicle telemetry
NMEA is a marine and vehicle data standard for GPS, depth, and other telemetry. Use NMEA-compatible modules or transducers that output serial streams and integrate with a Raspberry Pi for logging, visualization, and alerts.
- When to use: boat telemetry, mobile sensor logging, or combining navigation and environmental data.
Hardware choices: SBCs and microcontrollers
Select hardware based on connectivity, power, and processing needs.
- ESP32: wireless, low-cost microcontroller with built-in Wi‑Fi and Bluetooth. Ideal for battery- or USB-powered distributed sensors that publish via MQTT.
- Raspberry Pi (Zero/4): more capable for local logging, Graylog agents, and when you need USB or serial NMEA inputs.
- Power: prefer a stable 5V supply for Raspberry Pi and regulated 3.3V for ESP32. Consider UPS or battery backup for critical sensors.
Choose ESP32 for distributed MQTT nodes and Raspberry Pi for central aggregation, local dashboards, or serial devices.