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, and a single-board computer such as a Raspberry Pi or a microcontroller like 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)
- DS18B20: robust, waterproof option for one-point temperature sensing, low cost and easy wiring, good for fridges and pipes.
- BME280: combined temperature, humidity, and barometric pressure, excellent 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.
- Calibration: factory-calibrated models reduce maintenance needs; 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 cheap and low-power but can false-trigger from drafts or pets.
- Use complementary sensors like door contacts or cameras to improve reliability.
When to use: simple occupancy detection, DIY alarm prototypes, hallway and room presence sensors.
NMEA sensors for boats and vehicle telemetry
- NMEA is the marine data standard for GPS, depth, and other telemetry; use NMEA-compatible modules or transducers that output serial streams.
- 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
- ESP32: wireless, low-cost microcontroller with built-in Wi-Fi and Bluetooth, ideal for battery- or USB-powered distributed sensors.
- Raspberry Pi (Zero/4): more capable for local logging, Graylog agents, and when you need USB or serial NMEA inputs.
- Power: prefer stable 5V supply for Raspberry Pi and regulated 3.3V for ESP32; consider UPS or battery backup for critical sensors.
Choose ESP32 for distributed sensors that publish via MQTT and Raspberry Pi for central aggregation, local dashboards, or serial devices.