A two-room smoke and gas leak monitor for homes. MQ2 and DHT11 sensors watch the kitchen and storeroom, sound tiered buzzer alarms and stream live readings to a Blynk dashboard.

GitHub ↗Demo video ↗
[ Role ]

Embedded and IoT developer

[ Categories ]
  • IoT & Hardware
[ Stack ]
  • Arduino Uno
  • ESP8266 NodeMCU
  • Blynk IoT (Edgent)
  • C++ (Arduino)
  • MQ2 gas sensors
  • DHT11 sensors
  • RGB LEDs + buzzers

Gas leaks in a kitchen or storeroom can go unnoticed until it is too late. I built a monitor that watches both rooms at once. An Arduino Uno reads two MQ2 gas sensors and drives an RGB LED and buzzer in each room, with short beeps for a minor leak and a continuous siren for a serious one. An ESP8266 NodeMCU reads two DHT11 sensors, receives gas levels from the Uno over serial, and streams everything to a Blynk cloud dashboard where each room's monitoring can be switched on or off. I used two boards because the ESP8266 has only one analog input.

  1. 01Tiered alarms. Each room has its own buzzer and RGB LED, staying silent when air is clean, beeping for a minor leak and sounding a siren for a serious one.
  2. 02Two boards, one link. The Uno reads both analog gas sensors, tags each value with a room offset and sends it over serial to the ESP8266 on a single line.
  3. 03Live cloud dashboard. The ESP8266 pushes gas, temperature and humidity for both rooms to Blynk gauges, and a switch per room turns its monitoring on or off.
  4. 04Easy setup. Blynk Edgent handles Wi-Fi provisioning and over-the-air firmware updates, so the device joins a new network without reflashing the code.

Want something like this built?