FUZZY LOGIC-CONTROLLED IOT SYSTEM FOR SMART PUBLIC TOILETS: DESIGN, IMPLEMENTATION, AND EVALUATION
DOI:
https://doi.org/10.47709/cnahpc.v7i3.6045Keywords:
Smart toilet, Internet of Things (IoT), fuzzy logic, efisiensi energi, ESP32, Flutter, Real-Time Monitoring, Automation, Integrasi Sensor, SustainabilityAbstract
Efficient energy management in public facilities such as public toilets has become an important challenge in the modern era, especially with the increasing demand for environmental sustainability. In this research, we developed a smart toilet system based on the Internet of Things (IoT) using the ESP32 as the main microcontroller and fuzzy logic methods for intelligent decision-making. This system is equipped with temperature (DHT22), humidity, and distance (HC-SR04) sensors to detect environmental conditions and user presence. Based on this data, the toilet fan and light are automatically controlled to minimize energy consumption. To facilitate real-time monitoring and threshold control, this system is integrated with a Flutter-based application, which provides an intuitive user interface for viewing environmental data and setting temperature, humidity, and distance thresholds. Fuzzy logic is used to determine the fan speed based on temperature and humidity inputs, with the output being a gradual fan speed control. (PWM). The test results show that the system can reduce energy consumption by up to 30% compared to the manual method, especially by reducing the unnecessary device idle time. Additionally, the system has an average response time of 200 ms to send sensor data to the application and receive threshold updates from the user. With this approach, the research shows that the integration of IoT with fuzzy logic provides significant energy efficiency and enhances the user experience. This research also opens up opportunities for further development, such as the integration of machine learning technology for predicting facility usage patterns or the implementation of additional sensors for air quality detection. These findings support the implementation of IoT-based automated systems in public facilities to achieve energy efficiency and environmental sustainability.
Downloads
References
Al-Fuqaha, A., Guizani, M., Mohammadi, M., Aledhari, M., & Ayyash, M. (2015). Internet of Things: A survey on enabling technologies, protocols, and applications. IEEE Communications Surveys & Tutorials, 17(4), 2347–2376.
Anggriani, R., Yusfi, M., & Rasyid, R. (2023). Sistem Kontrol Lampu Otomatis dan Peringatan Barang Bawaan yang Tertinggal di Toilet Umum. Jurnal Fisika Unand, 12(2), 242-248. https://doi.org/10.25077/jfu.12.2.241-247.2023
Chatterjee, A., & Khovalyg, D. (2023). Dynamic indoor thermal environment using reinforcement learning-based controls: Opportunities and challenges. Building and environment, 244, 110766. https://doi.org/10.1016/j.buildenv.2023.110766
Fannani, A. H., & Prasetya, D. A. (2024). OPTIMALISASI KEBUTUHAN DAYA LISTRIK DAN PENGAPLIKASIAN INTERNET OF THINGS PADA KANTOR AMIN JAYA CEPU. Journal of Scientech Research and Development, 6(1), 1133-1149. https://doi.org/10.56670/jsrd.v6i1.418
Herrera-Viedma, E., Palomares, I., Li, C. C., Cabrerizo, F. J., Dong, Y., Chiclana, F., & Herrera, F. (2020). Revisiting fuzzy and linguistic decision making: Scenarios and challenges for making wiser decisions in a better way. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 51(1), 191-208. https://doi.org/10.1109/TSMC.2020.3043016
Hidayat, R. T., Nugroho, I. A., Saputra, D. M., Marzuki, M. I., & Prayogi, S. (2024). Pengembangan Sistem Penerangan Jalan Pintar Berbasis IoT dengan Arduino dan NodeMCU. Jurnal Algoritma, 21(2), 124-131. https://doi.org/10.33364/algoritma/v.21-2.1850
Humaida, N. (2024). Dasar-Dasar Pengetahuan Lingkungan Berbasis Perubahan Iklim Global. UrbanGreen Central Media.
Lampropoulos, G., Siakas, K., & Anastasiadis, T. (2019). Internet of things in the context of industry 4.0: An overview. International Journal of Entrepreneurial Knowledge, 7(1). https://doi.org/10.37335/ijek.v7i1.84
Nunes, A., & Monteiro, L. (2020). IoT-based solutions for energy efficiency in smart buildings. Sustainable Cities and Society, 63.
Papaioannou, T. G., Dimitriou, N., Vasilakis, K., Schoofs, A., Nikiforakis, M., Pursche, F., ... & Garbi, A. (2018). An IoT-based gamified approach for reducing occupants’ energy wastage in public buildings. Sensors, 18(2), 537. https://doi.org/10.3390/s18020537
Putra, H. M., & Rizki, W. (2025). Pengembangan Sistem untuk Deteksi dan Identifikasi Lokasi Kecelakaan pada Lansia sebagai Bentuk Peningkatan Keselamatan berbasis Internet of Things (IoT). Infotek: Jurnal Informatika dan Teknologi, 8(1), 205-216. https://doi.org/10.29408/jit.v8i1.28263
Ramasamy, R., & Subramaniam, V. (2019). Energy-efficient IoT-based smart home automation system. Journal of Ambient Intelligence and Humanized Computing, 10(11), 4425–4436.
Rodríguez, R. M., Labella, Á., & Martínez, L. (2016). An overview on fuzzy modelling of complex linguistic preferences in decision making. International Journal of Computational Intelligence Systems, 9(Suppl 1), 81-94.
Ross, T. J. (2016). Fuzzy Logic with Engineering Applications (4th ed.). John Wiley & Sons.
Sidek, N., Ali, N. A., & Alkawsi, G. (2022). An integrated success model of Internet of things (IoT)-based services in facilities management for public sector. Sensors, 22(9), 3207. https://doi.org/10.3390/s22093207
Suwandojo, D. P. E. H., Tyas, D. W., & Annisa, R. N. (2025). PENGELOLAAN FOOD WASTE RUMAH TANGGA BERBASIS KOMUNITAS: SEBUAH KAJIAN LITERATUR. Journal of Innovation Research and Knowledge, 4(10), 8125-8140. https://doi.org/10.53625/jirk.v4i10
Wulanda, D. (2024). Smart Furniture: Konsep Interior Kamar Indekos. DESKOVI: Art and Design Journal, 7(2), 189-196. https://doi.org/10.51804/deskovi.v7i2.16782
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Kahpi Baiquni Arifani, Muhamad Haidir Irsyadi, Akbar Tri Prakoso, Ahmad Wildan Amrullah, Fajar Indra Nur Alam, Dwi Arman Prasetya, Anggraini Puspita Sari

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.











