Thirai - IoT Gas Leakage Detection System using ESP32 + MQ-2 Sensor
IoT Gas Leakage Detection System using ESP32
Thirai - IoT Gas Leakage Detection System using ESP32 + MQ-2 Sensor
IoT Gas Leakage Detection System using ESP32 | Smart Safety Project 🔥 IoT Gas Leakage Detection System using ESP32 Overview
Gas leakage is one of the major safety concerns in homes and industries. This project uses an ESP32 microcontroller and MQ-2 gas sensor to detect harmful gas leaks such as LPG, methane, and smoke. The system can alert users instantly and can be extended with IoT features for remote monitoring.
Project Details Controller ESP32 Sensor MQ-2 Gas Sensor Output Buzzer / LED Level Beginner to Intermediate Components Required ESP32 Development Board MQ-2 Gas Sensor Buzzer LED Indicator Jumper Wires Working Principle
The MQ-2 sensor detects gas concentration in the air. When the gas level exceeds a threshold, the ESP32 reads the signal and activates a buzzer or LED alert. This system can be enhanced with IoT notifications using Wi-Fi.
Connections MQ-2 Sensor
VCC → 5V
GND → GND
OUT → GPIO 34
Buzzer
Positive → GPIO 25
Negative → GND
ESP32 Code Arduino Code Copy
#define GAS_SENSOR 34
#define B…