IoT-Based Early Fire Detection System using Flame and Gas Sensors with Telegram Bot and Blynk Dashboard Integration
Abstract
Fire incidents continue to pose significant risks to human safety and property due to delayed detection and response. Conventional fire alarm systems generally provide only local alerts, limiting remote monitoring and timely emergency actions. This study presents an Internet of Things (IoT)-based early fire detection system using an ESP32 microcontroller integrated with a KY-026 flame sensor and an MQ-2 gas sensor to detect fire and flammable gas conditions in real time. Sensor calibration was conducted to determine appropriate threshold values, resulting in a flame sensor threshold below 2000 ADC and a gas sensor threshold above 500 ADC. The proposed system integrates the Blynk platform for remote monitoring and Telegram Bot for automatic emergency notifications. To provide an initial fire suppression response, a relay activates a water pump connected to a sprinkler after continuous flame detection for six seconds, while a buzzer immediately alerts nearby occupants. Experimental results demonstrate that all hardware and software components operated reliably and communicated successfully through the Internet. The developed system provides accurate early fire detection, real-time monitoring, rapid warning notifications, and automatic initial fire suppression, making it suitable for residential and small-scale indoor fire safety applications.