Design and Construction of an ESP32-Based IoT Fire Alarm System to Differentiate Cigarette Smoke and Fire

khalil ar-rahman balosi, Ikhsan Hidayat, Iskandar Zulkarnain Nasibu, Wahab Musa, Zainudin Bonok, Rahmad Hidayat Dongka

Abstract


-This research aims to design and implement an Internet of Things (IoT)-based fire detection system using an ESP32 microcontroller. This system integrates a DHT22 sensor (temperature), an MQ-2 sensor (smoke/gas), and an IR Flame sensor (fire) to improve detection accuracy. In addition, the system is equipped with simple intelligent logic that is able to distinguish between cigarette smoke and fire smoke to minimize false alarms. Sensor data is processed in real-time by the ESP32 and used to activate a buzzer as a local alarm and send notifications via Telegram. Tests were conducted in three conditions, namely normal conditions, cigarette smoke, and fire. The results of the study show that the system is able to detect fires well and differentiate between cigarette smoke and fire based on a combination of sensor parameters. The system is also able to provide notifications quickly and responsively. This research provides an IoT-based security system solution that is effective, inexpensive, and easy to develop.

Keywords


ESP32; Fire Alarm; IoT; MQ-2; DHT22;

Full Text:

PDF

References


Y. Darnita, A. Discrise, and R. Toyib, “Prototype Alat Pendeksi Kebakaran Menggunakan Arduino,” J. Inform. Upgris, vol. 7, no. 1, Jun. 2021, doi: 10.26877/jiu.v7i1.7094.

Ketut Agus Ogi Wahyudi, “Simulasi Sistem Pendeteksi dan Pemadam Api Menggunakan ESP 32 (Doctoral dissertation, Politeknik Negeri Bali).,” ,Politeknik Negeri Bali.

A. Napu, O. Kembuan, and K. Santa, “Sistem Peringatan Dan Penanganan Dini Kebakaran Berbasis Internet Of Things(IoT),” JOINTER J. Inform. Eng., vol. 3, no. 01, pp. 10–16, Jun. 2022, doi: 10.53682/jointer.v3i01.45.

M. V. Gultom and I. S. Putro, “SISTEM DETEKSI KEBAKARAN BERBASIS IOT DENGAN MIKROKONTROLER ESP32,” J. Inform. Dan Tek. Elektro Terap., vol. 13, no. 2, Apr. 2025, doi: 10.23960/jitet.v13i2.6236.

Muhammad Ainun Najib, Adam Syuhada, Wahyu Dika Irfianton, and Sulartopo Sulartopo, “Sistem Deteksi Kebakaran Menggunakan Esp32 Dan Arduino,” Semin. Nas. Teknol. Dan Multidisiplin Ilmu SEMNASTEKMU, vol. 3, no. 1, pp. 211–218, Oct. 2023, doi: 10.51903/semnastekmu.v3i1.216.

R. Nurrohim and O. B. Kharisma, “Autonomus Call System Berbasis ESP32 Untuk Peringatan Dini Kebakaran Rumah,” J. Sist. Cerdas, vol. 6, no. 2, pp. 134–143, Aug. 2023, doi: 10.37396/jsc.v6i2.305.

G. G. Salindeho and T. Wellem, “PERANCANGAN DAN IMPLEMENTASI SISTEM PENDETEKSI DAN PERINGATAN KEBAKARAN BERBASIS IOT MENGGUNAKAN NODEMCU ESP8266 DAN SENSOR API,” IT-Explore J. Penerapan Teknol. Inf. Dan Komun., vol. 2, no. 3, pp. 179–191, Oct. 2023, doi: 10.24246/itexplore.v2i03.2023.pp179-191.

A. H. Saptadi, “Perbandingan Akurasi Pengukuran Suhu dan Kelembaban Antara Sensor DHT11 dan DHT22,” vol. 6, no. 2, 2014.

Y. Wijayanto, E. Kustiawan, and S. Mt, “Simulasi Sistem Pemantau Suhu dan Kelembaban Menggunakan Nodemcu dan Sensor DHT22 Berbasis IOT di Departemen Building Plant D & K (PCR) PT Gajah Tunggal Tbk.”.

T. Liu, “Digital-output relative humidity & temperature sensor/module DHT22 (DHT22 also named as AM2302)”.

H. Attamami and M. Fauzan, “PERANCANGAN MENENTUKAN LOKASI KEBAKARAN DENGAN FIRE ALARM SISTEM BERBASIS ARDUINO,” Infotronik J. Teknol. Inf. Dan Elektron., vol. 7, no. 1, p. 42, Jun. 2022, doi: 10.32897/infotronik.2022.7.1.1433.

N. Afiyat and M. L. Afif, “Perbandingan Kinerja Sensor MQ-2 dan MQ-6 pada Sistem Deteksi Kebocoran LPG dengan Notifikasi melalui Telegram,” J. Resist. Rekayasa Sist. Komput., vol. 7, no. 2, pp. 100–108, Aug. 2024, doi: 10.31598/jurnalresistor.v7i2.1591.

M. Akbar, A. L. Affandy, and C. Author, “Impelementasi Sistem Pendeteksi Kebakaran Berbasis Teknologi,” vol. 8, no. 1, 2023.

U. Muhammad, A. Mansur, and M. A. B. Maulana, “Rancang Bangun Power Supply Adjustable Current pada Sistem Pendingin Berbasis Termoelektrik”.

D. Rahmawati, M. Ulum, M. Farisal, and K. Joni, “Lantai Pembangkit Listrik Menggunakan Piezoelektrik dengan Buck Converter LM2596,” J. Arus Elektro Indones., vol. 7, no. 3, p. 84, Dec. 2021, doi: 10.19184/jaei.v7i3.28128


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 International Journal of Embedded Computer Engineering

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.