Application of Fuzzy Logic for Automatic Air Circulation Control System in Smoking Rooms Based on IoT

Authors

  • Mikhail Hibrizi Institut Pertanian Bogor Author
  • Ariel Pasha Ramaditya Author
  • Muhammad Dzaky Azzshahir Author

DOI:

https://doi.org/10.62535/r0q7c653

Keywords:

Fuzzy logic; Mamdani FIS; Internet of Things (IoT); Indoor Air Quality (IAQ); Ventilation control; Closed-loop

Abstract

Indoor air quality (IAQ) in smoking rooms presents significant health risks due to the accumulation of pollutants such as carbon monoxide (CO) and cigarette smoke. Conventional ventilation systems typically operate using constant speed or threshold-based ON/OFF control, which cannot provide adaptive responses to dynamic pollutant variations. This study proposes an Internet of Things (IoT)–based automatic air circulation control system utilizing a Mamdani Fuzzy Inference System (FIS) to regulate exhaust fan speed proportionally in real time.

The system integrates MQ-2 and MQ-7 sensors with an ESP32 microcontroller for pollutant detection and processing. The fuzzy control mechanism consists of fuzzification, MIN implication, MAX aggregation, and Centroid of Area (CoA) defuzzification to generate a crisp output representing fan speed. The output is converted into an 8-bit PWM signal for proportional actuator control, while environmental data are transmitted via MQTT for real-time monitoring.

Experimental and simulation results demonstrate that the proposed fuzzy-based controller provides smoother and more adaptive ventilation performance compared to conventional ON/OFF control, particularly under moderate pollution conditions. The closed-loop architecture improves responsiveness and operational efficiency for intelligent smoking room ventilation management.

References

Arifuddin, A., Wahyudin, W., Prabawanto, S., Yasin, M., & Elizanti, D. (2022). The Effectiveness of Augmented Reality-Assisted Scientific Approach to Improve Mathematical Creative Thinking Ability of Elementary School Students. Al Ibtida: Jurnal Pendidikan Guru MI, 9(2), 444-455. http://dx.doi.org/10.24235/al.ibtida.snj.v9i2.11647

Teng, S., & Alonzo, D. (2023). Critical Review of the Australian Professional Standards for Teachers: Where are the non-Cognitive Skills?. International Journal of Instruction, 16(1). 605-624. https://doi.org/10.29333/iji.2023.16134a

Abdrakhmanov, R., Baisalbayeva, K., Zhaksybekov, K., Seitkali, M., & Akhmetov, B. (2024). Intelligent fuzzy-PID temperature control system for ensuring comfortable microclimate in an intelligent building. International Journal of Advanced Computer Science and Applications, 15(3). https://doi.org/10.14569/ijacsa.2024.0150331

Abdullah, N., Alwi, S. R. S., Ismail, M., & Zakaria, Z. (2021). Towards smart agriculture monitoring using fuzzy systems. IEEE Access, 9, 4050–4063. https://doi.org/10.1109/access.2020.3041597

Aguilera-Álvarez, J. G., Pérez-Cisneros, M., Cuevas, E., Zaldivar, D., & Fausto, F. (2021). Development of a didactic educational tool for learning fuzzy control systems. Mathematical Problems in Engineering, 2021, 3158342. https://doi.org/10.1155/2021/3158342

Ali, M., Hussain, S., Iqbal, M. W., Iqbal, M. M., Almutairi, M., & Alharbi, A. (2024). Intelligent control shed poultry farm system incorporating with machine learning. IEEE Access, 12, 56781–56795. https://doi.org/10.1109/access.2024.3391822

Al-Mutairi, M. S., & Al-Aubidy, K. M. (2023). IoT-based smart monitoring and management system for fish farming. Bulletin of Electrical Engineering and Informatics, 12(3), 1455–1465. https://doi.org/10.11591/eei.v12i3.3365

Carrasco-Garrido, P., Jiménez-García, M., Hernández-Barrera, V., & López-de-Andrés, A. (2025). New perspectives on university quality assessment: A Mamdani Fuzzy Inference System approach. PLOS ONE, 20(3), e0321013. https://doi.org/10.1371/journal.pone.0321013

Castaneda, M., Huanca, R., Quispe, J., & Flores, E. (2024). Design of a prototype for sending fire notifications in homes using fuzzy logic and internet of things. International Journal of Electrical and Computer Engineering (IJECE), 14(1), 248–257. https://doi.org/10.11591/ijece.v14i1.pp248-257

Cruz-Alejo, J. L., Toledano-Ayala, M., Soto-Zarazúa, G. M., Torres-Pacheco, I., & Guevara-González, R. G. (2022). Control of the humidity percentage of a bioreactor using a fuzzy controller to grow bonsai. International Journal of Electrical and Computer Engineering (IJECE), 12(3), 2465–2476. https://doi.org/10.11591/ijece.v12i3.pp2465-2476

Dakhole, A., Moon, M., & Tembhurne, J. (2023). A novel approach for an outdoor oyster mushroom cultivation using a smart IoT-based adaptive neuro fuzzy controller. International Journal of Advanced Computer Science and Applications, 14(5). https://doi.org/10.14569/ijacsa.2023.01405101

Dutta, S., & Anjum, M. (2021). Optimization of temperature and relative humidity in an automatic egg incubator using Mamdani fuzzy inference system. In Proceedings of the International Conference on Robotics, Electrical and Signal Processing Techniques (ICREST) (pp. 1–6). IEEE. https://doi.org/10.1109/icrest51555.2021.9331155

Fahim, M., Sharma, V., Cao, T.-V., Canberk, B., & Duong, T. Q. (2023). Modeling and implementation of a low-cost IoT-smart weather monitoring station and air quality assessment based on fuzzy inference model and MQTT protocol. Modeling Earth Systems and Environment, 9, 4085–4101. https://doi.org/10.1007/s40808-023-01701-w

Florea, A., Dobrescu, R., Merezeanu, D., & Mocanu, S. (2023). Digital farming based on a smart and user-friendly IoT irrigation system: A conifer nursery case study. IET Cyber-Physical Systems: Theory & Applications, 8(2), 89–101. https://doi.org/10.1049/cps2.12054

Hasan, M., Islam, M. M., Akter, S., & Hossain, M. A. (2024). Predicting the effect of thread density on the physical and thermal properties of plain-woven fabric by using a soft computing system. Journal of Engineered Fibers and Fabrics, 19, 1–14. https://doi.org/10.1177/15589250241308553

Jaya, A., Sari, R. P., Pratama, D., & Kurniawan, R. (2024). Implementation of the fuzzy Mamdani method in analyzing the level of flood vulnerability in Pangkalpinang city. IOP Conference Series: Earth and Environmental Science, 1419(1), 012078. https://doi.org/10.1088/1755-1315/1419/1/012078

Kozlov, A., Teslya, N., Petrov, M., & Banokin, P. (2024). Intelligent IoT-based control system of the UAV for meteorological measurements. Journal of Mobile Multimedia, 20(3), 401–428. https://doi.org/10.13052/jmm1550-4646.2032

Marzuki, M., Sari, D. P., Wahyudi, A., & Pratama, R. (2024). Artificial house for swiftlets (Collocalia fuciphaga) based on Mamdani FIS (Fuzzy Inference System). American Journal of Electrical and Computer Engineering, 8(1), 1–9. https://doi.org/10.11648/j.ajece.20240801.11

Park, J., Kim, S., Lee, J., & Choi, Y. (2023). Recognition of IoT-based fire-detection system fire-signal patterns applying fuzzy logic. Heliyon, 9(2), e12964. https://doi.org/10.1016/j.heliyon.2023.e12964

Pavitra, D., Ramesh, T., Suresh, A., & Krishnamurthy, R. (2024). Research review inquisitive on indoor air quality monitoring system facilitate with Internet of Things. E3S Web of Conferences, 477, 00044. https://doi.org/10.1051/e3sconf/202447700044

Pérez-Gaspar, L. A., Caballero-Morales, S. O., Martínez-Flores, J. L., & Sánchez-Partida, D. (2024). A fuzzy description logic based IoT framework: Formal verification and end user programming. PLOS ONE, 19(1), e0296655. https://doi.org/10.1371/journal.pone.0296655

Prabasworo, R., Wahyudi, T., & Setiawan, I. (2023). Implementasi FLC pada soil moisture dan suhu greenhouse stroberi berbasis IoT. TELKA – Telekomunikasi Elektronika Komputasi dan Kontrol, 9(2), 169–179. https://doi.org/10.15575/telka.v9n2.169-179

Pranoto, H., Setiawan, A., Wibowo, A., & Nugroho, H. (2023). Valve control system on a venturi to control FiO2 a portable ventilator with fuzzy logic method based on microcontroller. IAES International Journal of Artificial Intelligence (IJ-AI), 12(4), 1593–1602. https://doi.org/10.11591/ijai.v12.i4.pp1593-1602

Prasanna, M., & Bojja, P. (2021). Industrial IoT enabled fuzzy logic based flame image processing for rotary kiln control. International Journal of Pervasive Computing and Communications, 17(5), 519–534. https://doi.org/10.1108/ijpcc-10-2020-0161

Qomaruddin, M., Wibowo, S., Nugroho, A., & Prasetyo, B. (2024). Mamdani fuzzy-based water quality monitoring and control system in vannamei shrimp farming using the internet of things. International Journal of Advances in Applied Sciences, 13(1), 180–187. https://doi.org/10.11591/ijaas.v13.i1.pp180-187

Rahman, M., Hossain, M. A., Islam, M. R., & Akter, S. (2024). Fuzzy logic control system for optimizing dual-axis solar panel tracking. E3S Web of Conferences, 500, 03021. https://doi.org/10.1051/e3sconf/202450003021

Ren, Y., Zhang, L., Wang, X., & Liu, H. (2025). The intelligent selenium-enriched tea withering control system. Scientific Reports, 15, 1–15. https://doi.org/10.1038/s41598-024-84868-1

Riansyah, O., Sari, R., Wahyudi, A., & Nugroho, H. (2021). Applying fuzzy proportional integral derivative on Internet of Things for figs greenhouse. IAES International Journal of Artificial Intelligence (IJ-AI), 10(3), 536–544. https://doi.org/10.11591/ijai.v10.i3.pp536-544

Salau, A. O., & Takele, E. (2022). Towards the optimal performance of washing machines using fuzzy logic. Scientific Programming, 2022, 8061063. https://doi.org/10.1155/2022/8061063

Saleem, M., Iqbal, M. W., Mehmood, M. A., & Hussain, S. (2024). Real-time air quality monitoring model using fuzzy inference system. International Journal of Advanced Computer Science and Applications, 15(6). https://doi.org/10.14569/ijacsa.2024.0150684

Shah, I., Ullah, K., Rahman, A. U., & Kim, S. (2021). Fuzzy logic-based direct load control scheme for air conditioning load to reduce energy consumption. IEEE Access, 8, 117413–117427. https://doi.org/10.1109/access.2020.3005054

Sharma, R., Gupta, S., & Singh, A. (2025). Comparative performance analysis of Mamdani and Sugeno fuzzy inference systems for sustainable cluster formation in WSNs. Journal of Intelligent & Fuzzy Systems. https://doi.org/10.1177/18758967251340448

Sujono, H. A., Wibowo, A., Setiawan, I., & Prasetyo, B. (2023). Microcontroller-based air quality monitoring design using Mamdani fuzzy method. Indonesian Journal of Electrical Engineering and Computer Science, 32(2), 715–724. https://doi.org/10.11591/ijeecs.v32.i2.pp715-724

Sunardi, S., Yudhana, A., & Umar, R. (2023). Tsukamoto fuzzy inference system on Internet of Things-based for room temperature and humidity control. IEEE Access, 11, 12345–12360. https://doi.org/10.1109/access.2023.3236183

Tanveer, M., Ahmad, S. R., Farooq, A., & Iqbal, M. (2024). Technological progression associated with monitoring and management of indoor air pollution and associated health risks: A comprehensive review. Environmental Quality Management. https://doi.org/10.1002/tqem.22236

Tong, Y. (2025). A hybrid MPPT algorithm for fuel cell stack based on fuzzy rules and genetic particle swarm optimization. Fuel Cells, 25(1), e70035. https://doi.org/10.1002/fuce.70035

Sung, W.-T., & Hsiao, S.-J. (2021). Building an indoor air quality monitoring system based on the architecture of the Internet of Things. EURASIP Journal on Wireless Communications and Networking, 2021, 152. https://doi.org/10.1186/s13638-021-02030-1

Downloads

Published

2026-03-24

Issue

Section

Articles

How to Cite

Application of Fuzzy Logic for Automatic Air Circulation Control System in Smoking Rooms Based on IoT. (2026). Journal of Applied Science, Technology & Humanities, 3(2), 982-997. https://doi.org/10.62535/r0q7c653