IoT-Based Aquarium Water Quality Monitoring System Using Mamdani Fuzzy Logic Method

Authors

  • Saifullah Hidayat Universitas Pamulang
  • Agung Siswopranoto Universitas Pamulang

DOI:

https://doi.org/10.55537/cosie.v5i4.1816

Keywords:

Internet of Things (IoT), Fuzzy Mamdani, ESP32

Abstract

Water quality is a crucial factor affecting the health and survival of freshwater ornamental fish. Manual monitoring is often ineffective because changes in water conditions can occur rapidly and numerical sensor readings are difficult to interpret directly. This study aims to implement the Mamdani Fuzzy Logic method in an Internet of Things (IoT)-based aquarium water quality monitoring system using Total Dissolved Solids (TDS) and temperature sensors. Sensor data are processed through fuzzification, rule-based inference, and defuzzification to classify water quality into three categories: poor, normal, and good. The monitoring results are then displayed in real time through a web-based dashboard. Experimental results indicate that the TDS sensor achieved an average error of 3%, while the temperature sensor achieved an average error of 2.6%. Furthermore, the implementation of the Mamdani Fuzzy Logic method produced an average error of only 0.6% compared with MATLAB simulation results. These findings demonstrate that the proposed system is capable of monitoring aquarium water quality accurately and providing clear decision support for users in maintaining optimal water conditions. The main contribution of this study is the integration of the Mamdani Fuzzy method into an IoT-based monitoring system, implemented directly on the ESP32 microcontroller for real-time inference, unlike previous studies that typically process fuzzy data on servers or cloud platforms. This approach achieves accuracy comparable to MATLAB simulation with an average error of only 0.6%.

Downloads

Download data is not yet available.

References

[1] I. Rosyidah, C. ali rizal, and Sumardi, “Sistem Pemantauan Dan Kontrol Kualitas Air Pada Budidaya Bandeng Meggunakan Metode Fuzzy Logic,” pp. 50–55, 2023, doi: 10.23917/emitor.v1i1.21551.

[2] M. S. S. Dwiryo and Endryansyah, “Sistem Kontrol Suhu dan Monitoring TDS Air pada Akuarium Anakan Ikan Koi Menggunakan Fuzzy Logic Controller Berbasis IoT,” pp. 70–81, 2025, doi: https://doi.org/10.26740/jte.v14n1.p70-81.

[3] M. Fikri, A. Musthafa, and F. R. Pradhana, “Design and Build Smart Aquascape Based on PH and TDS With IoT System Using Fuzzy Logic Rancang Bangun Smart Aquascape Berdasarkan PH dan TDS Dengan Sistem IoT Menggunakan Logika Fuzzy,” vol. 2, no. 1, pp. 5–7, 2021, doi: https://doi.org/10.21070/pels.v2i0.1166.

[4] S. A. Wulandari, A. Sucipto, A. F. Rosyady, M. D. R. Ardana, O. D. P. Cahyono, and A. N. Khomarudin, “Rancang Bangun Sistem Monitoring Kualitas Air Untuk Mendeteksi Keadaan Tidak Normal atau Penyakit Pada Tambak Ikan Mujaer Menggunakan Fuzzy Logic Mamdani Berbasis Mobile,” vol. 3, no. 1, pp. 42–54, 2024, doi: https://doi.org/10.55043/technologica.v3i1.153.

[5] M. T. Rahman, F. Yanto, and E. Haerani, “Implementasi Fuzzy Sugeno Berbasis IoT untuk Peringatan Kualitas Air Akuarium Ikan Mas Koki,” vol. 5, no. 4, pp. 573–583, 2025, doi: 10.47065/bulletincsr.v5i4.627.

[6] D. Amni, “Penerapan Metode Fuzzy Mamdani Pada Pemilihan Bidang Pekerjaan Sesuai Kompetensi,” vol. 6, no. 2, 2023.

[7] C. E. Boyd and A. A. Mcnevin, “Reviews in Fisheries Science & Aquaculture Resource Use and Pollution Potential in Feed- Based Aquaculture Resource Use and Pollution Potential in Feed-Based Aquaculture,” Rev. Fish. Sci. Aquac., vol. 32, no. 2, pp. 306–333, 2024, doi: 10.1080/23308249.2023.2258226.

[8] A. A. H. AlQadry, K. Nisa, M. Adnan, R. Praminasari, and A. A. Nugraha, “Rancang Bangun Alat Pemantau Kualitas Air Kolam Ikan Hias Berbasis Internet Of Things ( IOT ),” pp. 87–91, 2022.

[9] I. Ruslianto, U. Ristian, H. Hasfani, and K. Sari, “Rekayasa Sistem Fotosintesis dan Ekosistem pada,” vol. 9, no. 1, pp. 136–142, 2023, doi: https://doi.org/10.26418/jp.v9i1.61746.

[10] A. Syahfitri, “Internet of Things ( IoT ), Sejarah , Teknologi , dan Penerapannya,” vol. 3, 2025, doi: https://doi.org/10.61132/uranus.v3i1.667.

[11] M. Hidayat, I. Dwitawati, and I. W. Pratiwi, “Monitoring Tanaman Hidroponik Dengan Impementasi Internet Of Things ( IT ) Di Green House Prodi Biologi Uin Ar-Raniry Pendahuluan Zaman digital telah merubah berbagai kegiatan manusia yang dulunya dilakukan secara konvensional menjadi mungkin dilakukan s,” vol. 4, no. 2, pp. 163–174, 2024, doi: 10.22373/kenanga.v4i2.5661.

[12] F. R. Ibrahim, F. T. Syifa, and H. Pujiharsono, “Penerapan Sensor Suhu DS18B20 dan Sensor pH sebagai Otomatisasi Pakan Ikan Berbasis IoT,” vol. 8275, pp. 63–72, 2023, doi: https://doi.org/10.20895/jtece.v5i2.844.

[13] A. Siswopranoto and G. Saputri, “Penerapan Aplikasi E-Cuti Berbasis Web dengan Extreme Programming ( Studi Kasus : Pengadilan Agama Jakarta Barat ),” vol. 33, no. 4, pp. 70–74, 2023, doi: https://doi.org/10.37277/stch.v33i4.1801.

[14] F. A. Sihombing, “Kajian Fuzzy Metode Mamdani dan Fuzzy Metode Sugeno serta Implementasinya,” vol. 4, pp. 4940–4955, 2024, doi: https://doi.org/10.31004/innovative.v4i4.13108.

[15] A. Siswopranoto and G. Saputri, “Penerapan Aplikasi E-Perkara di Pengadilan Agama Jakarta Barat dengan Model Agile Development,” vol. 18, no. 4, pp. 305–314, 2025, doi: http://dx.doi.org/10.30998/faktorexacta.v18i4.27915.

Downloads

Published

30-09-2026

How to Cite

Hidayat, S., & Siswopranoto, A. (2026). IoT-Based Aquarium Water Quality Monitoring System Using Mamdani Fuzzy Logic Method . Journal of Computer Science and Informatics Engineering , 5(4), 606–617. https://doi.org/10.55537/cosie.v5i4.1816

Issue

Section

Articles