ANALISIS PERFORMA PROTOKOL MQTT PADA SISTEM MONITORING GAS BERBAHAYA MENGGUNAKAN SENSOR MQ135 TERINTEGRASI ANDROID
Abstract
This study analyzes the performance of the Message Queuing Telemetry Transport (MQTT) protocol in a hazardous gas monitoring system using an MQ135 sensor and an ESP8266 NodeMCU microcontroller, integrated with a Flutter-based Android application. The monitored gases include CO, NO₂, CO₂, and SO₂, based on the threshold limits set by Permenaker No. 5 of 2018. The objective of this study is to evaluate MQTT Quality of Service (QoS) parameters, including delay, jitter, packet loss, and throughput, across three QoS levels (0, 1, and 2). Sensor validation was conducted using the Repeatability Test and Threshold Detection Test. The results show that the sensor demonstrates good reliability with CV values ranging from 1.92% to 3.78% and an average detection success rate of 98.9%. MQTT testing indicates that QoS 0 achieves the lowest delay (42.3 ms), jitter (3.12 ms), and zero packet loss, and the highest throughput (18.6 kbps). Additionally, the system provides real-time notification with an average response time below 500 ms. However, QoS 1 is identified as the optimal configuration, balancing delivery reliability and network efficiency for real-time laboratory safety monitoring systems
Downloads
References
H. Soewardi et al., “Penguatan Budaya Keselamatan Laboratorium Universitas X Malaysia melalui Identifikasi Risiko dan Penerapan K3,” Journal of Approriate Technology for Community Services, vol. 7, no. 1, pp. 62–72, Jan. 2026, doi: https://doi.org/10.20885/jattec.vol7.iss1.art7.
Menteri Ketenagakerjaan RI, Peraturan Menteri Ketenagakerjaan No 5 Tahun 2018 Tentang Keselamatan dan Kesehatan Kerja Lingkungan Kerja. 2018.
A. Nag et al., “Exploring the applications and security threats of Internet of Thing in the cloud computing paradigm: A comprehensive study on the cloud of things,” Transactions on Emerging Telecommunications Technologies, vol. 35, no. 4, Apr. 2024, doi: https://doi.org/10.1002/ett.4897.
S. K, S. S. R, S. A, and F. Vincy R, “Integrated IoT-based Hazard Detection and Automated Waste Management System for Environmental Safety,” in 2025 5th International Conference on Trends in Material Science and Inventive Materials (ICTMIM), IEEE, Apr. 2025, pp. 1175–1181. doi: https://doi.org/10.1109/ICTMIM65579.2025.10987973.
A. Al-Fuqaha, M. Guizani, M. Aledhari, and M. Ayyash, “Internet of Things: A Survey on Enabling Technologies, Protocols, and Applications,” IEEE Communications Surveys & Tutorials, vol. 17, no. 4, pp. 2347–2376, 2015.
Eclipse Foundation, “2024 IoT & Embedded Developer Survey Report,” 2024. Accessed: Apr. 21, 2026. [Online]. Available: https://outreach.eclipse.foundation/iot-embedded-developer-survey-2024
F. Azzedin and T. Alhazmi, “Secure Data Distribution Architecture in IoT Using MQTT,” Applied Sciences, vol. 13, no. 4, p. 2515, Feb. 2023, doi: https://doi.org/10.3390/app13042515.
D. Dinesh, A. Nithin Mowshik, M. Meyyappan, and M. Kowtham, “Analysis of universal gas leak detector of hazardous gases using IOT,” Mater. Today Proc., vol. 66, pp. 1044–1050, 2022, doi: https://doi.org/10.1016/j.matpr.2022.04.837.
G. Karuna, R. P. R. Kumar, S. Gopaldas, V. Parvathaneni, and T. Lokesh, “Air Quality and Hazardous Gas Detection using IoT for Household and Industrial Areas,” E3S Web of Conferences, vol. 391, p. 01146, Jun. 2023, doi: https://doi.org/10.1051/e3sconf/202339101146.
R. Muttaqin, W. S. W. Prayitno, N. E. Setyaningsih, and U. Nurbaiti, “Rancang Bangun Sistem Pemantauan Kualitas Udara Berbasis Iot (Internet Of Things) dengan Sensor DHT11 dan Sensor MQ135,” Jurnal Pengelolaan Laboratorium Pendidikan, vol. 6, no. 2, pp. 102–115, May 2024, doi: https://doi.org/10.14710/jplp.6.2.102-115.
R. M. R. Akbar, T. Y. Arif, and M. Irhamsyah, “Analisis Performansi Protokol MQTT Pada Sistem Pemantauan Kualitas Udara Ruangan Berbasis IoT,” vol. 8, no. 3, p. 2023, 2023.
M. F. Tsaqief and J. Sutopo, “Comparative Performance Analysis Between the MQTT and WebSocket Protocols,” bit-Tech, vol. 8, no. 2, pp. 2227–2237, Dec. 2025, doi: https://doi.org/10.32877/bt.v8i2.3223.
M. Kashyap, A. K. Dev, and V. Sharma, “Implementation and analysis of EMQX broker for MQTT protocol in the Internet of Things,” e-Prime - Advances in Electrical Engineering, Electronics and Energy, vol. 10, p. 100846, Dec. 2024, doi: https://doi.org/10.1016/j.prime.2024.100846.
D. Santika, M. R. Aprilyawan, and F. Mahardika, “Desain Sistem Internet Of Things untuk Monitoring Kebocoran Gas Berbasis Website dengan Notifikasi Real-Time,” Simpatik: Jurnal Sistem Informasi dan Informatika, vol. 5, no. 1, pp. 37–43, Jun. 2025, doi: https://doi.org/10.31294/simpatik.v5i1.7668.
B. Rahman, F. Pernando, and N. Indriawan, “Sistem Monitoring Kebocoran Gas Dan Api Menggunakan Sensor MQ-2 Dan Flame Sensor Berbasis Android,” Journal Sensi Online, vol. 8, no. 2, p. 2022, Aug. 2022.

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
This work is licensed under CC BY-SA 4.0
Tunjung Genarsih(1*)









