Design and Development of an IoT-Based Indoor Air Quality Monitoring and Control System Using the Tsukamoto Fuzzy Algorithm on a Dual-Core ESP32 Architecture
DOI:
https://doi.org/10.33387/protk.v13i3.11752Keywords:
IoT, indoor air quality, Tsukamoto fuzzy logic, ESP32, dual-core architecture, BME680, Firebase.Abstract
Indoor air quality (IAQ) is a critical environmental health factor responsible for millions of cases of respiratory diseases each year. This study presents the design of an Internet of Things (IoT)-based indoor air circulation control system that integrates a BME680 sensor, an ESP32 microcontroller, and the Firebase Realtime Database platform with the Tsukamoto fuzzy logic algorithm as a control mechanism. This research implements a dual-core architecture on the ESP32, separating IoT communication tasks from sensor computation. This approach enables the BSEC algorithm to run consistently without interruption. The system uses two input variables (IAQ values and room temperature) as well as two actuators—a fan and a 12V DC blower—controlled via Pulse Width Modulation (PWM) signals based on 12 fuzzy rules. Testing was conducted in a miniature test chamber measuring 23.5 × 16 × 18 cm with controlled pollutant introduction. The research results show that the BME680 sensor has an average accuracy of 99.3% for temperature and 98.0% for humidity. All 12 fuzzy testing scenarios met the rule base criteria. The system was able to reduce the IAQ value from a very dirty condition (IAQ = 500) to a clean condition (IAQ ≤ 80) in an average time of 281 seconds. Data synchronization between the local LCD display and the Firebase-based mobile application achieved 100% accuracy. These results demonstrate that the Tsukamoto fuzzy method is effective in producing rule-based, stable, and proportional control for indoor air circulation systems.Downloads
References
“Household air pollution and related health impacts Key messages.” [Online]. Available: https://www.who.int/publications/i/item/B09440
J. Radbel, M. E. Rebuli, H. Kipen, and E. Brigham, “Indoor air pollution and airway health,” Oct. 01, 2024, Elsevier Inc. doi: 10.1016/j.jaci.2024.08.013.
L. Li, Y. Lin, T. Xia, and Y. Zhu, “Effects of electronic cigarettes on indoor air quality and health,” Apr. 01, 2019, Annual Reviews Inc. doi: 10.1146/annurev-publhealth-040119-094043.
S. L. R. Nasution, E. Girsang, E. F. M. Butar-Butar, N. Z. Hafizah, and P. Manalu, “Dampak Kualitas Udara Dalam Ruangan Terhadap Kejadian ISPA di Kecamatan Medan Denai, Kota Medan,” Jurnal Kesehatan Lingkungan Indonesia, vol. 24, no. 3, pp. 277–286, Oct. 2025, doi: 10.14710/jkli.70451.
D. H. Yunardi, A. Misbullah, and D. G. Gemilang, “RANCANG BANGUN SISTEM WEB MONITORING KUALITAS UDARA DI DALAM RUANGAN MENGGUNAKAN LOGIKA FUZZY,” Jurnal Pendidikan Teknologi informasi, vol. 7, no. 1, pp. 25–34, 2023.
S. Sholahudin, M. A. S. Yudono, W. D. Nurhidayat, A. I. Muslim, and I. Aminuddin, “IoT-based Mamdani Fuzzy Logic System for Monitoring Air Pollution in Sukabumi Regency,” Fidelity : Jurnal Teknik Elektro, vol. 5, no. 3, pp. 216–222, Sep. 2023, doi: 10.52005/fidelity.v5i3.185.
P. Foltýnek, M. Babiuch, and P. Šuránek, “Measurement and data processing from Internet of Things modules by dual-core application using ESP32 board,” Measurement and Control (United Kingdom), vol. 52, no. 7–8, pp. 970–984, Sep. 2019, doi: 10.1177/0020294019857748.
S. D. Nursyahuda and B. Hariadi, “Rancang Bangun Sistem Pengendalian Kualitas Kondisi Ruangan Ideal Berbasis Arduino Uno Dengan Metode Fuzzy logic,” Jurnal Teknik Elektro dan Komputasi, vol. 6, no. 1, pp. 36–47, May 2024, doi: 10.32528/elkom.v6i1.20086.
Richi Andrianto, Nopi Purnomo, and Yuda Irawan, “Application of Fuzzy Logic Mamdani in IoT-Based Air Quality Monitoring Systems,” The Indonesian Journal of Computer Science, vol. 13, no. 5, Sep. 2024, doi: 10.33022/ijcs.v13i5.4291.
Nadia Putri, Lindawati, and Aryanti, “Implementasi dan Perbandingan Performa Algoritma Fuzzy Tsukamoto dan Mamdani pada Sistem Exhaust Fan Berbasis IoT,” Tech-E, vol. 8, no. 1, pp. 24–35, Aug. 2024, doi: 10.31253/te.v8i1.3169.
R. N. Hidayat, F. Idris, and J. Juhaeriyah, “A Comparative Analysis of Sugeno and Tsukamoto Fuzzy Logic for Temperature Stability in SCAMIS,” Protek : Jurnal Ilmiah Teknik Elektro, vol. 12, no. 3, pp. 182–189, Sep. 2025, doi: 10.33387/protk.v12i3.10514.
J. Dombi and E. Tóth-Laufer, “Reducing the Computational Requirements in the Mamdani-type Fuzzy Control,” 2020. doi: https://doi.org/10.12700/APH.17.3.2020.3.2.
A. Anantama et al., “IMPLEMENTASI METODE FUZZY PADA SISTEM SIRKULASI UDARA BERBASIS INTERNET OF THINGS,” Jurnal Teknik dan Sistem Komputer (JTIKOM), vol. 3, no. 2, p. 2022.
T. Tamaji and Y. A. K. Utama, “IMPLEMENTASI FUZZY LOGIC UNTUK KUALITAS UDARA, SUHU, DAN KELEMBABAN UDARA BERBASIS IOT,” Foristek, vol. 14, no. 1, Jun. 2023, doi: 10.54757/fs.v14i1.249.
D. Din, Z. B. Hasanuddin, and S. Panggalo, “Rancang Bangun Sistem Pemantauan Kualitas Udara Berbasis Internet of Things (IoT) Menggunakan Thingspeak dan Website,” Jurnal EKSITASI, vol. 3, no. 1, 2024.
F. Deman Samudra, M. Ulum, K. Joni, and D. Rahmawati, “Air Pullution Monitoring and Detection System Design Using Fuzzy Method Based on IoT Perancangan Sistem Monitoring dan Deteksi Polusi Udara Menggunakan Metode Fuzzy Sugeno Berbasis IoT,” 2021.
H. H. Tang and N. S. Ahmad, “Fuzzy logic approach for controlling uncertain and nonlinear systems: a comprehensive review of applications and advances,” 2024, Taylor and Francis Ltd. doi: 10.1080/21642583.2024.2394429.
Z. Majidah, M. Ari Bianto, and B. Dwi Saputra, “Implementasi Fuzzy Logic Mamdani Untuk Monitoring Kualitas Udara Berbasis Iot,” Jurnal Pengembangan Teknologi Informasi dan Komunikasi, vol. 2, no. 1, pp. 1–6, Jun. 2024, doi: 10.52060/juptik.v2i1.2091.
M. Apriyadi and H. Sirad, “Optimasi Sistem Pembangkit Listrik Tenaga Angin Dan Pembangkit Listrik Tenaga Diesel Berbasis Fuzzy Logic,” 2019.
Furizal, Sunardi, and A. Yudhana, “Temperature and Humidity Control System with Air Conditioner Based on Fuzzy Logic and Internet of Things,” Journal of Robotics and Control (JRC), vol. 4, no. 3, pp. 308–322, May 2023, doi: 10.18196/jrc.v4i3.18327.
P. By alldatasheetcom, “Bosch Sensortec | BME680 Datasheet 1 | 53 Modifications reserved |Data subject not change without notice | Printed in Germany BME680-Datasheet,” 2024.
“PERMENKES REPUBLIK INDONESIA NOMOR 1077/MENKES/PER/V/2011 TENTANG PEDOMAN PENYEHATAN UDARA DALAM RUANG RUMAH.”
S. Umar Anggono, “COMPARATIVE ANALYSIS OF POWER CONSUMPTION AND REAL-TIME PERFORMANCE BETWEEN ESP32 AND RASPBERRY PI PICO W IN IOT-BASED TEMPERATURE MONITORING SYSTEMS,” vol. 16, no. 1, pp. 176–182, 2025, [Online]. Available: http://ejurnal.provisi.ac.id/index.php/JTIKP
D. Hercog, T. Lerher, M. Truntič, and O. Težak, “Design and Implementation of ESP32-Based IoT Devices,” Sensors, vol. 23, no. 15, Aug. 2023, doi: 10.3390/s23156739.
D. Wall, P. McCullagh, I. Cleland, and R. Bond, “Development of an Internet of Things solution to monitor and analyse indoor air quality,” Internet of Things (Netherlands), vol. 14, Jun. 2021, doi: 10.1016/j.iot.2021.100392.
L. Kuglics, A. Géczy, K. Dusek, D. Busek, and B. Illés, “Personal Air-Quality Monitoring with Sensor-Based Wireless Internet-of-Things Electronics Embedded in Protective Face Masks,” Sensors, vol. 24, no. 8, Apr. 2024, doi: 10.3390/s24082601.
J. Palacín, E. Rubies, E. Clotet, and D. Martínez, “Classification of Two Volatiles Using an eNose Composed by an Array of 16 Single-Type Miniature Micro-Machined Metal-Oxide Gas Sensors,” Sensors, vol. 22, no. 3, Feb. 2022, doi: 10.3390/s22031120.
“DataSheet COOLCOX 40 x 40 x 20mm DC Blower Fan.”. [Online]. Available: https://datasheet.octopart.com/BF4020L24S-CoolCox-datasheet-27682448.pdf
“DataSheet RS PRO, 12 V dc, DC Axial Fan, 50 x 50 x 10mm, 18.7m3/h, 1.44W.”. [Online]. Available: https://docs.rs-online.com/a180/A700000008943839.pdf
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Estriadi Aditias, Juju Juhaeriyah

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Authors who publish with this journal agree to the following terms:
- The copyright of the accepted for publication articles shall be assigned to Protek : Jurnal Ilmiah Teknik Elektro as the publisher of the journal. The intended copyright includes the rights to publish articles in various forms (including reprints).
- Protek : Jurnal Ilmiah Teknik Elektro maintain the publishing rights of the published articles.
- Authors are permitted to republish or disseminate published articles by sharing the link/DOI of the article at Protek : Jurnal Ilmiah Teknik Elektro. Authors are allowed to use their articles for any legal purposes deemed necessary without written permission from Protek : Jurnal Ilmiah Teknik Elektro with an acknowledgment of initial publication to this journal.
Protek : Jurnal Ilmiah Teknik Elektro by Department of Electrical Engineering, Faculty of Engineering, Universitas Khairun
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.







