IoT-Based LPG Gas Leak Detection System Using an MQ-2 Sensor and ESP32
DOI:
https://doi.org/10.69533/informatech.volume3number2.648Keywords:
LPG Gass, Internet of Things, Sensor MQ-2, ESP32, Bot TelegramAbstract
Liquefied Petroleum Gas (LPG) is widely used in household and industrial sectors because it is efficient and relatively affordable. However, LPG use poses fire risks, one of which is caused by gas leaks that go unnoticed by users. This study aims to develop an Internet of Things (IoT) system for detecting LPG gas leaks using an MQ-2 sensor and an ESP32 microcontroller. The system is equipped with LED indicators, a buzzer, an LCD, and a notification feature through a Telegram bot to provide warnings to users. The research methods include system design, circuit block analysis, workflow diagram development, testing using the Wokwi simulator, and Telegram message delivery testing. The results show that the MQ-2 sensor can detect three levels of gas concentration: safe (<200 ppm), caution (200–1000 ppm), and dangerous (>1000 ppm). The system can automatically activate the LED indicators, display gas concentration and category on the LCD, and send immediate alerts to users through the Telegram bot. Therefore, the developed system can be used as a monitoring and early warning device for LPG gas leaks.
Downloads
References
A. Wirdatiningsih, Hamdan, and Hendro, "Perancangan Detektor LPG Berbasis Sensor MQ-2 dan Mikrokontroler ATmega328P," Jurnal Teknologi Informasi dan Komputer (JTIK), vol. 9, no. 2, pp. 110–116, 2017.
[2] D. Dermawan and R. Rino, "Sistem Deteksi Kebocoran Gas LPG Berbasis Arduino Uno dan Modul GSM SIM900A," Jurnal Teknologi dan Rekayasa, vol. 13, no. 3, pp. 44–52, 2022.
A. R. Firmansyah and M. Hidayat, "Alat Pendeteksi Kebocoran Gas LPG Dengan Memanfaatkan Telegram Bot Sebagai Media Informasi," Jurnal Elektro dan Informatika (ELINFO), vol. 10, no. 2, pp. 57–64, 2022.
I. N. Maulana, D. L. Rahmah, and A. Prabowo, "Sistem Pendeteksi Kebocoran Gas LPG Berbasis IoT Dengan NodeMCU ESP32 dan Metode Naive Bayes," Jurnal Riset Informatika (JRI), vol. 8, no. 2, pp. 95–104, 2024.
S. Anugrah, D. Rahmawati, and N. Saputra, "Prototype Alat Pendeteksi Kebocoran Gas dan Api Dengan Sensor MQ-2 dan Sensor Api Berbasis IoT," Jurnal Teknologi dan Sistem Informasi (JTSI), vol. 8, no. 1, pp. 35–42, 2022.
D. D. Hutagalung, "Perancangan alat pendeteksi gas dan proteksi otomatis menggunakan mikrokontroler Arduino," Jurnal Rekayasa Sistem Elektronika (JRSE), vol. 5, no. 2, pp. 70–77, 2018.
M. A. Prasetyo and N. Paramytha, "Pengembangan Sistem Pendeteksi Kebocoran Gas LPG dengan Teknologi IoT dan Sensor MQ5," Jurnal Ampere, vol. 8, no. 2, pp. 104–110, Dec. 2023, doi: (lengkapi nomor DOI).
R. Hidayatullah and H. Muchtar, "Robot pendeteksi kebocoran gas menggunakan mikrokontroler Atmega328 dan sensor MQ-2," Jurnal Teknik Elektro dan Komputer (JTEK), vol. 3, no. 1, pp. 22–29, 2015.
M. F. Putra, "Alat pendeteksi kebocoran gas LPG berbasis Arduino Uno dengan konektivitas internet," Jurnal Teknologi dan Informasi (JTI), vol. 6, no. 2, pp. 41–47, 2017.
R. A. Fauzi, "Sistem Deteksi Kebocoran Gas LPG Menggunakan Sensor MQ-2 Berbasis ESP32 dan IoT," Jurnal Teknologi Elektro dan Informatika (JTEI), vol. 9, no. 2, pp. 45–52, 2022.
A. F. Kurniawan, "Implementasi Buzzer dan Sensor MQ-2 pada Sistem Keamanan Rumah Berbasis Arduino," Jurnal Rekayasa Elektronika dan Instrumentasi (JREI), vol. 7, no. 1, pp. 23–28, 2020.
T. Suryana, "Perancangan Sensor MQ-2 untuk Deteksi Gas Mudah Terbakar dan Asap," Jurnal Elektronika dan Kontrol (ELKON), vol. 11, no. 1, pp. 61–68, 2021.
S. Saribekyan and D. Margvelashvili, "Integration of Telegram Bot API for IoT Sensor Monitoring," International Journal of Emerging Technologies in Engineering Research (IJETER), vol. 5, no. 9, pp. 1–6, 2017.
S. P. Kumar and P. Rajendran, "Design and implementation of IoT-based smart gas leakage detection system using ESP32," in Proc. IEEE Int. Conf. Smart Technol. Syst. Next Gener. Comput. (ICSTSN), 2022, pp. 541–546.
M. T. F. A. Anandita, H. Hariyono, D. Purwitasari, and A. I. L. Wulandari, "Perancangan Sistem Deteksi Kebocoran Gas LPG dengan Menggunakan Sensor MQ-2 Berbasis IoT (Internet of Things)," Marine Electrical Engineering Proceeding, Politeknik Pelayaran Surabaya, 2023.
Hanwei Electronics Co., Ltd., "Technical data MQ-2 gas sensor," MQ-2 datasheet. [Online]. Available: (URL).
Espressif Systems, "ESP32 series datasheet," (versi). [Online]. Available: https://www.espressif.com.
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Nadifah Meidina Margo Setyo, Rini Fatmawati, Moch Yasin, Andhy Permadi, Ilham (Author)

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









