A real-time IoT-based Gas & Flame Detection and Alert System built using ESP32, MQ Gas Sensor, Flame Sensor, Blynk IoT Cloud, and a local buzzer alarm.
The system monitors gas leakage and fire hazards, triggers an immediate audible alarm, and sends instant mobile notifications via the Blynk IoT platform.
- 🔹 Real-time gas leakage detection
- 🔹 Instant flame/fire detection
- 🔹 Buzzer alarm for immediate awareness
- 🔹 Cloud notifications via Blynk Events
- 🔹 Live sensor values on Blynk Dashboard
- 🔹 Adjustable gas sensitivity threshold
- 🔹 Manual alarm reset using mobile app
- 🔹 Fault-tolerant readings & smooth updates
| Component | Description |
|---|---|
| ESP32 Dev Board | Main microcontroller & WiFi module |
| MQ Gas Sensor | Detects flammable gas concentration |
| Flame Sensor Module | Detects fire/infrared flame presence |
| Active Buzzer | Local audible alarm |
| Breadboard & Wires | Circuit assembly |
| USB Cable | Power + programming |
| Sensor/Module | ESP32 Pin |
|---|---|
| Gas Sensor A0 | GPIO 34 |
| Flame Sensor D0 | GPIO 27 |
| Buzzer (+) | GPIO 25 |
| Buzzer (–) | GND |
| Sensor VCC | 3.3V / 5V |
| Sensor GND | GND |
| Function | Virtual Pin |
|---|---|
| Gas Value Display | V0 |
| Flame Status (1/0) | V1 |
| Alarm Indicator | V2 |
| Gas Threshold Slider | V3 |
| Reset Button | V4 |
- Event Name:
alert - Type: Critical / High Priority
- Push Notifications: ON
- ESP32 reads gas & flame sensors every 300ms
- Threshold logic checks for dangerous levels
- If hazard detected:
- Buzzer = ON
- Alarm State = Active
- Cloud Event Trigger → Mobile Notification
- User may reset alarm from the app
- Normal readings update live on Blynk Dashboard
Full ESP32 firmware is located here:
👉 /Code/main.ino
The complete minor project report containing:
- Circuit diagrams
- Flowcharts
- DFD levels
- ER diagrams
- Hardware photos
- System testing screenshots
- Explanation & analysis
is available here:
👉 Download Project Report (PDF)
(Rename this link once your actual filename is uploaded.)
- Swapnil Thakur
- Satyam Saurav
- Internet of Things (IoT)
- Embedded Systems
- Microcontroller Programming (ESP32)
- Cloud Integration (Blynk IoT)
- Sensor Interfacing (MQ/Flame)
- Real-Time Monitoring
- Event-Driven I/O
- Hardware Debugging
- C/C++ (Arduino Framework)
This project is released under the MIT License — free to use and modify with attribution.
Feel free to fork, improve, or open issues.
Pull requests are welcome!