Implementasi dan Optimasi Sistem Monitoring Kualitas Udara Berbasis Sensor Gas MQ-135 dan SHT21 dengan Metode IoT
DOI:
https://doi.org/10.47065/bulletincsr.v6i5.1093Keywords:
Air Quality; Internet of Things (IoT); MQ-135 Sensor; SHT21 Sensor; Monitoring System; ESP8266Abstract
The decline in air quality caused by industrialization and urbanization requires an automated, real-time, and affordable monitoring method, since manual measurement by environmental health officers is still limited to periodic site visits. This study aims to implement and optimize an air quality monitoring system based on the Internet of Things (IoT) using the MQ-135 gas sensor and the SHT21 temperature-humidity sensor, targeting improved gas-sensor calibration accuracy through linear regression and faster, more reliable data transmission to a MySQL database. The system is designed to detect environmental parameters such as hazardous gas concentrations, temperature, and humidity, which are then transmitted in real-time to a web-based platform for visualization and data analysis. The implementation process involves integrating hardware, including the Arduino Uno and NodeMCU ESP8266 microcontrollers with the MQ-135 and SHT21 sensors, as well as developing software that enables information processing and IoT communication. Testing was conducted to evaluate sensor accuracy, data transmission stability, and system reliability under varying environmental conditions. The results demonstrate that the system can provide accurate information and respond effectively to changes in environmental parameters, sending notifications when gas concentrations exceed predefined thresholds. This system not only serves as a monitoring tool but also as an educational medium to raise awareness of the importance of maintaining air quality. The main contribution of this research is a self-hosted air quality monitoring architecture that combines a quantitatively validated MQ-135 gas-sensor calibration method with an integrated web- and Telegram-based early-warning system. Further development opportunities, such as incorporating predictive analytics and AI for more accurate air quality data analysis, emerge as outcomes of this research.
Downloads
References
A. Yasin, J. Delaney, C.-T. Cheng, and T. Y. Pang, "The Design and Implementation of an IoT Sensor-Based Indoor Air Quality Monitoring System Using Off-the-Shelf Devices," Appl. Sci., vol. 12, no. 19, p. 9450, 2022, doi: 10.3390/app12199450.
L. García, A.-J. Garcia-Sanchez, R. Asorey-Cacheda, J. Garcia-Haro, and C.-L. Zúñiga-Cañón, "Smart Air Quality Monitoring IoT-Based Infrastructure for Industrial Environments," Sensors, vol. 22, no. 23, p. 9221, 2022, doi: 10.3390/s22239221.
A. U. Khan, M. E. Khan, M. Hasan, W. Zakri, W. Alhazmi, and T. Islam, "An Efficient Wireless Sensor Network Based on the ESP-MESH Protocol for Indoor and Outdoor Air Quality Monitoring," Sustainability, vol. 14, no. 24, p. 16630, 2022, doi: 10.3390/su142416630.
A. Mota, C. Serôdio, A. Briga-Sá, and A. Valente, "Implementation of an Internet of Things Architecture to Monitor Indoor Air Quality: A Case Study During Sleep Periods," Sensors, vol. 25, no. 6, p. 1683, 2025, doi: 10.3390/s25061683.
O. Alsamrai, M. D. Redel-Macías, S. Pinzi, and M. P. Dorado, "A Systematic Review for Indoor and Outdoor Air Pollution Monitoring Systems Based on Internet of Things," Sustainability, vol. 16, no. 11, p. 4353, 2024, doi: 10.3390/su16114353.
N. S. Baqer, H. A. Mohammed, and A. S. Albahri, "Development of a Real-Time Monitoring and Detection Indoor Air Quality System for Intensive Care Unit and Emergency Department," Signa Vitae, vol. 19, no. 1, pp. 77–92, 2023, doi: 10.22514/sv.2022.013.
A. Rochmania, I. Sucahyo, and M. Yantidewi, "Monitoring Kandungan CO2 Berbasis IoT dengan NodeMCU ESP8266 dan Sensor MQ135," J. Sains dan Pendidik. Fis., vol. 17, no. 3, pp. 249–259, 2021, doi: 10.35580/JSPF.V17I3.30634.
A. A. Mashuri and N. Zulfa, "Sistem Monitoring dan Pendukung Keputusan Kualitas Udara di Kota Semarang Menggunakan IoT," Jurnal Informatika UPGRIS, vol. 8, no. 1, pp. 37–41, 2022, doi: 10.26877/jiu.v8i1.7532.
A. D. Prakoso and T. Wellem, "Perancangan dan Implementasi Sistem Pemantauan Kualitas Udara Berbasis IoT Menggunakan Wemos D1 Mini dan Android," Build. Informatics Technol. Sci. (BITS), vol. 4, no. 3, pp. 1246–1254, 2022, doi: 10.47065/bits.v4i3.2498.
M. Sadali, Y. K. Putra, L. Kertawijaya, and I. Gunawan, "Sistem Monitoring dan Notifikasi Kualitas Udara di Jalan Raya dengan Platform IoT," Infotek J. Inform. dan Teknol., vol. 5, no. 1, pp. 11–21, 2022, doi: 10.29408/jit.v5i1.4384.
M. Ta?tan, H. Gökozan, and A. Mutlu, "Analysis of the Impact of Human Activities on Indoor Air Quality with Internet of Things Based e-Nose," Celal Bayar Univ. J. Sci., vol. 18, no. 4, pp. 393–401, 2022, doi: 10.18466/cbayarfbe.1018796.
H. B. Surbakti, J. G. A. Ginting, S. Romadhona, M. B. Ginting, and K. Ni'amah, "Sistem Monitoring Kualitas Udara Ruangan dengan Protokol MQTT Berbasis Internet of Things," J. SINTA Sist. Inf. dan Teknol. Komputasi, vol. 1, no. 3, pp. 129–137, 2024, doi: 10.61124/sinta.v1i3.25.
C. B. D. Kuncoro, M. B. Z. Asyikin, and A. Amaris, "Smart-Autonomous Wireless Volatile Organic Compounds Sensor Node for Indoor Air Quality Monitoring Application," Int. J. Environ. Res. Public Health, vol. 19, no. 4, p. 2439, 2022, doi: 10.3390/ijerph19042439.
D. N. Azizah, S. Heranurweni, and L. O. M. Idris, "Internet of Things Based Air Quality Monitoring System with Automatic Notification," MALCOM Indones. J. Mach. Learn. Comput. Sci., vol. 5, no. 3, pp. 776–787, 2025, doi: 10.57152/malcom.v5i3.1945.
M. G. Salasa, A. Rosadi, and N. Fahriani, "Perancangan Alat Monitoring Polusi Udara Berbasis Mikrokontroler Menggunakan Sensor Gas TGS-2442," Comput. Insight J. Comput. Sci., vol. 3, no. 1, 2021, doi: 10.30651/ci:jcs.v3i1.9146.
A. A. Aserkar, S. R. Godla, Y. A. Baker El-Ebiary, Krishnamoorthy, and J. V. N. Ramesh, "Real-Time Air Quality Monitoring in Smart Cities Using IoT-Enabled Advanced Optical Sensors," Int. J. Adv. Comput. Sci. Appl., vol. 15, no. 4, pp. 840–848, 2024, doi: 10.14569/IJACSA.2024.0150487.
A. Seppewali, F. F. Dwiputra, and W. H. Mulyo, "Sistem Notifikasi Monitoring Kualitas Udara dalam Ruangan Produksi Berbasis Internet of Things (IoT) Menggunakan ESP8266," Pixel J. Ilm. Komput. Grafis, vol. 17, no. 1, pp. 134–148, 2024, doi: 10.51903/pixel.v17i1.1990.
M. Hasanuddin and H. Herdianto, "Sistem Monitoring dan Deteksi Dini Pencemaran Udara Berbasis Internet of Things (IoT)," J. Comput. Syst. Informatics (JoSYC), vol. 4, no. 4, pp. 976–984, 2023, doi: 10.47065/josyc.v4i4.4034.
A. S. Ratri, V. C. Poekoel, and A. M. Rumagit, "Perancangan Sistem Monitoring Kualitas Udara dalam Ruangan Berbasis IoT," J. Tek. Inform., vol. 17, no. 1, 2022, doi: 10.35793/jti.17.1.2022.34212.
N. Barros, P. Sobral, R. S. Moreira, J. Vargas, A. Fonseca, I. Abreu, and M. S. Guerreiro, "SchoolAIR: A Citizen Science IoT Framework Using Low-Cost Sensing for Indoor Air Quality Management," Sensors, vol. 24, no. 1, p. 148, 2024.
O. Alsamrai, M. D. Redel-Macías, and M. P. Dorado, "Real-Time Intelligent Monitoring of Outdoor Air Quality in an Urban Environment Using IoT and Machine Learning Algorithms," Appl. Sci., vol. 15, no. 16, p. 9088, 2025.
N. A. Megahed and E. M. Ghoneim, "Indoor Air Quality: Rethinking Rules of Building Design Strategies in Post-Pandemic Architecture," Environ. Res., vol. 193, p. 110471, 2021.
R. R. Kureshi, D. Thakker, B. K. Mishra, and J. Barnes, "From Raising Awareness to a Behavioural Change: A Case Study of Indoor Air Quality Improvement Using IoT and COM-B Model," Sensors, vol. 23, no. 7, p. 3613, 2023.
M. M. Abdel-Salam, "Relationship Between Residential Indoor Air Quality and Socioeconomic Factors in Two Urban Areas in Alexandria, Egypt," Build. Environ., vol. 207, p. 108425, 2022.
P. Anand, D. Cheong, and C. Sekhar, "A Review of Occupancy-Based Building Energy and IEQ Controls and Its Future Post-COVID," Sci. Total Environ., vol. 804, p. 150249, 2022.
Bila bermanfaat silahkan share artikel ini
Berikan Komentar Anda terhadap artikel Implementasi dan Optimasi Sistem Monitoring Kualitas Udara Berbasis Sensor Gas MQ-135 dan SHT21 dengan Metode IoT
ARTICLE HISTORY
How to Cite
Issue
Section
Copyright (c) 2026 Theopilus S.P Sibarani, Eko Setia Budi, Abdul Rahman Kadafi

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under Creative Commons Attribution 4.0 International License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (Refer to The Effect of Open Access).













