Multi-Unit Residential Gas Leak Monitoring with Role-Based Web Dashboards and Dual-Channel Alerting on an ESP32 Platform
Authors
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA Cawangan Melaka Kampus Jasin, 77300 Merlimau, Melaka (Malaysia)
Faculty of Computer and Mathematical Sciences, Universiti Teknologi MARA, 40450 Shah Alam, Selangor (Malaysia)
Article Information
DOI: 10.47772/IJRISS.2026.101100473
Subject Category: Computer Science
Volume/Issue: 10/11 | Page No: 6682-6690
Publication Timeline
Submitted: 2026-11-11
Accepted: 2026-11-16
Published: 2026-11-28
Abstract
Leaks of liquefied petroleum gas (LPG) and other combustible gases in homes are hazardous because they can go unnoticed, and most household detectors raise only a local audible alarm, which is ineffective when occupants are absent or asleep. In apartments, hostels and other managed residences, a further problem is that residents and building managers need different views of the same events. This paper presents the design, implementation and evaluation of a web-based gas leak monitoring system for multi-unit residential settings. MQ-2 gas sensors are read by an ESP32 microcontroller, which averages each reading over ten samples, compares the raw 12-bit reading with a fixed alarm threshold, sounds a local buzzer and posts the reading to an Apache/PHP server with a MySQL database every 2 s. The server feeds two role-based dashboards, an administrator view of all units and a resident view restricted to one unit, and sends a Telegram message to the affected unit’s user when the threshold is exceeded. A two-unit prototype was tested with a butane source on a local Wi-Fi network provided by a 4G-enabled smartphone hotspot, whose LTE uplink carried the Internet-dependent Telegram notification. All 17 dashboard functions passed functional testing by two testers, and all four test scenarios, including a simultaneous leak in both units, produced the expected alerts. Averaged over repeated trials, the detection time was 1.55 s, the Telegram alert delay 2.35 s and the end-to-end response 4.3 s, and the two units differed by at most 0.2 s. The results indicate that unit-level remote alerting can be added to low-cost detectors with a delay of a few seconds, while the local alarm continues to work without the network. Dependence on Internet connectivity, uncalibrated sensor output and the small scale of the prototype remain the main limitations.
Keywords
Internet of Things, gas leak detection, ESP32, role-based access control, Telegram alerting
Downloads
References
1. Easterline, L. M., Putri, A. A.-Z. R., Atmaja, P. S., Dewi, A. L., & Prasetyo, A. (2024). Smart air monitoring with IoT-based MQ-2, MQ-7, MQ-8, and MQ-135 sensors using NodeMCU ESP32. Procedia Computer Science, 245, 815–824. https://doi.org/10.1016/j.procs.2024.10.308 [Google Scholar] [Crossref]
2. Islam, G. Z., Hossain, M. M., Faruk, M., Nur, F. N., Hasan, N., Khan, M. K. M., & Tumpa, Z. N. (2022). IoT-based intelligent gas leakage detection and fire protection system. International Journal of Interactive Mobile Technologies, 16(21), 49–70. https://doi.org/10.3991/ijim.v16i21.30311 [Google Scholar] [Crossref]
3. Landi, E., Parri, L., Baldo, D., Parrino, S., Vatansever, T., Fort, A., Mugnaini, M., & Vignoli, V. (2025). Reliability and performance evaluation of IoT-based gas leakage detection systems for residential environments. Electronics, 14(19), 3798. https://doi.org/10.3390/electronics14193798 [Google Scholar] [Crossref]
4. Monisha, M., Sarumathi, S., & Pratheeba, R. (2025). IoT enabled gas leak detection and safety automation system. International Journal of Advanced Research in Computer and Communication Engineering, 14(5). https://doi.org/10.17148/IJARCCE.2025.14520 [Google Scholar] [Crossref]
5. Mota, A., Serôdio, C., Briga-Sá, A., & Valente, A. (2025). Implementation of an Internet of Things architecture to monitor indoor air quality: A case study during sleep periods. Sensors, 25(6), 1683. https://doi.org/10.3390/s25061683 [Google Scholar] [Crossref]
6. Mustofa, M., & Fadlil, A. (2023). Design an Internet of Things-based LPG gas leak detection system. Buletin Ilmiah Sarjana Teknik Elektro, 4(3), 122–131. https://doi.org/10.12928/biste.v4i3.5572 [Google Scholar] [Crossref]
7. Pineda-Tobón, D. M., Espinosa-Bedoya, A., & Branch-Bedoya, J. W. (2024). Aquality32: A low-cost, open-source air quality monitoring device leveraging the ESP32 and Google platform. HardwareX, 20, e00607. https://doi.org/10.1016/j.ohx.2024.e00607 [Google Scholar] [Crossref]
8. Prananda, M. I., Syahputra, S., & Syari, M. A. (2023). Design of an LPG leak detection system using IoT-based MQ-2 sensor. Journal of Artificial Intelligence and Engineering Applications, 3(1), 383–387. https://doi.org/10.59934/jaiea.v3i1.337 [Google Scholar] [Crossref]
9. Rahman, J. U., Shah, M. A., Sana, & Jan, A. (2025). Enhancing home safety with automated gas leakage detection using computer vision. In 2025 International Conference on Emerging Technologies in Electronics, Computing, and Communication (ICETECC) (pp. 1–6). IEEE. https://doi.org/10.1109/ICETECC65365.2025.11070288 [Google Scholar] [Crossref]
10. Robalino P., E. F., Llerena, A., Flores, L. A., Trujillo, F., Freire, L. O., & Lara, F. (2025). IoT-based system for detecting and monitoring LPG leaks in residential settings. Engineering Proceedings, 115(1), 9. https://doi.org/10.3390/engproc2025115009 [Google Scholar] [Crossref]
11. Shah, A. S., Dinesh, A., Shah, A., Farooq, M., Maqsood, A., & Khani, M. A. K. (2024). Smart gas leak detection and emergency response system using IoT for homes. Journal of ICT, Design, Engineering and Technological Science, 8(1), 18–23. https://doi.org/10.33150/JITDETS-8.1.3 [Google Scholar] [Crossref]
12. Spirjakin, D., & Baranov, A. (2017). Internet connected wireless combustible gas monitoring system for apartment buildings. In M. Ganzha, L. Maciaszek, & M. Paprzycki (Eds.), Proceedings of the 2017 Federated Conference on Computer Science and Information Systems (ACSIS Vol. 11, pp. 873–876). https://doi.org/10.15439/2017F311 [Google Scholar] [Crossref]
13. Yusuf, R. M., & Wahyu W., A. P. (2022). Internet of Things-based gas leak detection with alerts via SMS and Blynk app. Sinkron: Jurnal dan Penelitian Teknik Informatika, 6(3), 811–816. https://doi.org/10.33395/sinkron.v7i3.11477 [Google Scholar] [Crossref]
Metrics
Views & Downloads
Similar Articles
- What the Desert Fathers Teach Data Scientists: Ancient Ascetic Principles for Ethical Machine-Learning Practice
- Comparative Analysis of Some Machine Learning Algorithms for the Classification of Ransomware
- Comparative Performance Analysis of Some Priority Queue Variants in Dijkstra’s Algorithm
- Transfer Learning in Detecting E-Assessment Malpractice from a Proctored Video Recordings.
- Dual-Modal Detection of Parkinson’s Disease: A Clinical Framework and Deep Learning Approach Using NeuroParkNet