Development of a Multi-Sensor Fuzzy Logic-Based Automatic Water Gate Control System for Real-Time Biodiesel Oil Leak Monitoring
DOI:
https://doi.org/10.64780/jeims.v2i1.18Keywords:
Automatic Water Gate Control, Fuzzy Logic, Industrial Wastewater Monitoring, Multi-Sensor Integration, Real-Time MonitoringAbstract
The rapid growth of the biodiesel industry has contributed to economic development but has also increased the risk of environmental pollution caused by oil-contaminated industrial wastewater. Conventional wastewater control systems generally rely on manual monitoring, resulting in delayed detection and ineffective responses to oil leakage incidents. This study aimed to develop a multi-sensor fuzzy logic-based automatic water gate control system for real-time biodiesel oil leak monitoring. The proposed system employed an Arduino Uno microcontroller integrated with a TCS34725 color sensor, a turbidity sensor, and an HC-SR04 ultrasonic sensor to detect oil contamination, water turbidity, and water level, respectively. A Sugeno fuzzy logic algorithm was implemented to process sensor data and automatically control the water gate and pump operation based on predefined decision rules. Experimental results showed that the TCS34725 sensor successfully distinguished water and biodiesel oil, with red (R) values of 44–47 for water and 49–54 for oil. The turbidity sensor generated values ranging from 969–1424 NTU for water and −300 to −2705 NTU for biodiesel oil. The developed system reliably closed the water gate upon oil detection and activated the appropriate pump according to water level conditions. These findings demonstrate that the proposed intelligent control system provides an effective and reliable solution for real-time biodiesel wastewater monitoring, contributing to improved industrial wastewater management and reduced environmental pollution risks.
References
Abubakar, A., Abisoye, O. A., Alabi, I. O., Solomon, A., & Oyefolahan, I. O. (2025). Systematic literature review and bibliometric analysis of pipeline monitoring and leakage detection techniques. Discover Mechanical Engineering, 4(1), 17. https://doi.org/10.1007/s44245-025-00102-w
Adjovu, G. E., Stephen, H., James, D., & Ahmad, S. (2023). Overview of the application of remote sensing in effective monitoring of water quality parameters. Remote Sensing, 15(7). https://doi.org/10.3390/rs15071938
Ahmed, S., Mouël, F. L., Stouls, N., & Kouyi, G. L. (2023). Development and analysis of a distributed leak detection and localisation system for crude oil pipelines. Sensors, 23(9). https://doi.org/10.3390/s23094298
Alshami, A., Elsayed, M., Ali, E., Eltoukhy, A. E. E., & Zayed, T. (2023). Monitoring blockage and overflow events in small-sized sewer network using contactless flow sensors in Hong Kong: Problems, causes, and proposed solution. IEEE Access, 11, 87131–87149. https://doi.org/10.1109/ACCESS.2023.3305275
Bandara, R. M. P. N. S., Jayasignhe, A. B., & Retscher, G. (2025). The integration of IoT (Internet of Things) sensors and location-based services for water quality monitoring: A systematic literature review. Sensors, 25(6). https://doi.org/10.3390/s25061918
Bhardwaj, A., Dagar, V., Khan, M. O., Aggarwal, A., Alvarado, R., Kumar, M., Irfan, M., & Proshad, R. (2022). Smart IoT and machine learning-based framework for water quality assessment and device component monitoring. Environmental Science and Pollution Research, 29(30), 46018–46036. https://doi.org/10.1007/s11356-022-19014-3
Bicamumakuba, E., Reza, M. N., Jin, H., Samsuzzaman, Lee, K.-H., & Chung, S.-O. (2025). Multi-sensor monitoring, intelligent control, and data processing for smart greenhouse environment management. Sensors, 25(19). https://doi.org/10.3390/s25196134
Cai, Y., Ou, Y., & Qin, T. (2024). Improving SLAM techniques with integrated multi-sensor fusion for 3D reconstruction. Sensors, 24(7). https://doi.org/10.3390/s24072033
Chavhan, N., Bhattad, R., Khot, S., Patil, S., Pawar, A., Pawar, T., & Gawli, P. (2025). APAH: An autonomous IoT-driven real-time monitoring system for industrial wastewater. Digital Chemical Engineering, 14, 100217. https://doi.org/10.1016/j.dche.2025.100217
Che, X., Tian, Z., Bi, Z., Wang, L., & Yin, S. (2026). Spectral technology for water quality detection: A review. Applied Spectroscopy Reviews, 61(4), 319–344. https://doi.org/10.1080/05704928.2025.2529903
Chen, S.-L., Chou, H.-S., Huang, C.-H., Chen, C.-Y., Li, L.-Y., Huang, C.-H., Chen, Y.-Y., Tang, J.-H., Chang, W.-H., & Huang, J.-S. (2023). An intelligent water monitoring IoT system for ecological environment and smart cities. Sensors, 23(20). https://doi.org/10.3390/s23208540
D. Atoufi, H., & Lampert, D. J. (2020). Impacts of oil and gas production on contaminant levels in sediments. Current Pollution Reports, 6(2), 43–53. https://doi.org/10.1007/s40726-020-00137-5
Dong, W., Yang, Q., Fang, X., & Ruan, W. (2021). Adaptive optimal fuzzy logic based energy management in multi-energy microgrid considering operational uncertainties. Applied Soft Computing, 98, 106882. https://doi.org/10.1016/j.asoc.2020.106882
Dumitrescu, C., Ciotirnae, P., & Vizitiu, C. (2021). Fuzzy logic for intelligent control system using soft computing applications. Sensors, 21(8). https://doi.org/10.3390/s21082617
Etim, E. E., Samuel, H. S., Undie, D. A., Akinpelu, O. O., Ibekwe, F. A., & Onotu, O. P. (2026). Environmental management practices in the oil and gas industry moving beyond conventional perceptions of harm. Discover Environment, 4(1), 8. https://doi.org/10.1007/s44274-025-00505-2
Gad, O. M., Fareh, R., Khadraoui, S., Bettayeb, M., & Rahman, M. H. (2024). Intelligent fuzzy logic-based internal model control for rotary flexible robots. Processes, 12(9). https://doi.org/10.3390/pr12091908
Guler, N., Ismail, Z. M., Hazem, Z. B., & Naik, N. (2024). Adaptive fuzzy logic controller-based intelligent energy management system scheme for hybrid electric vehicles. IEEE Access, 12, 173441–173454. https://doi.org/10.1109/ACCESS.2024.3496897
Hakak, S., Khan, W. Z., Gilkar, G. A., Haider, N., Imran, M., & Alkatheiri, M. S. (2020). Industrial wastewater management using blockchain technology: Architecture, requirements, and future directions. IEEE Internet of Things Magazine, 3(2), 38–43. https://doi.org/10.1109/IOTM.0001.1900092
Hosseinpour, S., & Martynenko, A. (2023). An adaptive fuzzy logic controller for intelligent drying. Drying Technology, 41(7), 1110–1132. https://doi.org/10.1080/07373937.2022.2119996
Ibrahim, O., Bakare, M. S., Amosa, T. I., Otuoze, A. O., Owonikoko, W. O., Ali, E. M., Adesina, L. M., & Ogunbiyi, O. (2023). Development of fuzzy logic-based demand-side energy management system for hybrid energy sources. Energy Conversion and Management: X, 18, 100354. https://doi.org/10.1016/j.ecmx.2023.100354
Idachaba, F., & Rabiei, M. (2021). Current technologies and the applications of data analytics for crude oil leak detection in surface pipelines. Journal of Pipeline Science and Engineering, 1(4), 436–451. https://doi.org/10.1016/j.jpse.2021.10.001
Kant, T., Shrivas, K., Tejwani, A., Tandey, K., Sharma, A., & Gupta, S. (2023). Progress in the design of portable colorimetric chemical sensing devices. Nanoscale, 15(47), 19016–19038. https://doi.org/10.1039/D3NR03803C
Klymchuk, O., Khodakivska, O., Kovalov, B., Brusina, A., Benetyte, R., & Momotenko, I. (2020). World trends in bioethanol and biodiesel production in the context of sustainable energy development. International Journal of Global Environmental Issues, 19(1–3), 90. https://doi.org/10.1504/IJGENVI.2020.114867
Kong, L., Peng, X., Chen, Y., Wang, P., & Xu, M. (2020). Multi-sensor measurement and data fusion technology for manufacturing process monitoring: A literature review. International Journal of Extreme Manufacturing, 2(2), 022001. https://doi.org/10.1088/2631-7990/ab7ae6
Li, X., Yi, X., Liu, Z., Liu, H., Chen, T., Niu, G., Yan, B., Chen, C., Huang, M., & Ying, G. (2021). Application of novel hybrid deep learning model for cleaner production in a paper industrial wastewater treatment system. Journal of Cleaner Production, 294, 126343. https://doi.org/10.1016/j.jclepro.2021.126343
Liu, X., Zhao, Z., & Rezaeipanah, A. (2025). Intelligent and automatic irrigation system based on internet of things using fuzzy control technology. Scientific Reports, 15(1), 14577. https://doi.org/10.1038/s41598-025-98137-2
Liu, Z., Xiao, G., Liu, H., & Wei, H. (2022). Multi-sensor measurement and data fusion. IEEE Instrumentation & Measurement Magazine, 25(1), 28–36. https://doi.org/10.1109/MIM.2022.9693406
Lu, Z., Wang, M., Zhang, M., Li, J., Xu, Y., Shi, H., Liu, Y., & Huang, X. (2020). Water-level based discrete integrated dynamic control to regulate the flow for sewer-WWTP operation. Frontiers of Environmental Science & Engineering, 14(3), 45. https://doi.org/10.1007/s11783-020-1222-4
Mizik, T., & Gyarmati, G. (2021). Economic and sustainability of biodiesel production: A systematic literature review. Clean Technologies, 3(1), 19–36. https://doi.org/10.3390/cleantechnol3010002
Mohebbian, M. R., Sohag, M. H. A., Vedaei, S. S., & Wahid, K. A. (2021). Automated detection of bleeding in capsule endoscopy using on-chip multispectral imaging sensors. IEEE Sensors Journal, 21(13), 14121–14130. https://doi.org/10.1109/JSEN.2020.3034831
Morales Escobar, L., Aguilar, J., Garcés-Jiménez, A., Gutierrez De Mesa, J. A., & Gomez-Pulido, J. M. (2020). Advanced fuzzy-logic-based context-driven control for HVAC management systems in buildings. IEEE Access, 8, 16111–16126. https://doi.org/10.1109/ACCESS.2020.2966545
Osman, A. I., Lai, Z. Y., Farghali, M., Yiin, C. L., Elgarahy, A. M., Hammad, A., Ihara, I., Al-Fatesh, A. S., Rooney, D. W., & Yap, P.-S. (2023). Optimizing biomass pathways to bioenergy and biochar application in electricity generation, biodiesel production, and biohydrogen production. Environmental Chemistry Letters, 21(5), 2639–2705. https://doi.org/10.1007/s10311-023-01613-2
Saad, A., Benyamina, A. E. H., & Gamatié, A. (2020). Water management in agriculture: A survey on current challenges and technological solutions. IEEE Access, 8, 38082–38097. https://doi.org/10.1109/ACCESS.2020.2974977
Salem, R. M. M., Saraya, M. S., & Ali-Eldin, A. M. T. (2022). An industrial cloud-based IoT system for real-time monitoring and controlling of wastewater. IEEE Access, 10, 6528–6540. https://doi.org/10.1109/ACCESS.2022.3141977
Samadzadegan, F., Toosi, A., & Dadrass Javan, F. (2025). A critical review on multi-sensor and multi-platform remote sensing data fusion approaches: Current status and prospects. International Journal of Remote Sensing, 46(3), 1327–1402. https://doi.org/10.1080/01431161.2024.2429784
Sayghe, A. (2025). Cyber-physical vulnerabilities of wireless sensor networks in the oil and gas industry: A literature review. The Journal of Engineering, 2025(1), e70142. https://doi.org/10.1049/tje2.70142
Sharma, V. B., Tewari, S., Biswas, S., & Sharma, A. (2024). A comprehensive study of techniques utilized for structural health monitoring of oil and gas pipelines. Structural Health Monitoring, 23(3), 1816–1841. https://doi.org/10.1177/14759217231183715
Silva, G. M. e, Campos, D. F., Brasil, J. A. T., Tremblay, M., Mendiondo, E. M., & Ghiglieno, F. (2022). Advances in technological research for online and in situ water quality monitoring: A review. Sustainability, 14(9). https://doi.org/10.3390/su14095059
Spandonidis, C., Theodoropoulos, P., & Giannopoulos, F. (2022). A combined semi-supervised deep learning method for oil leak detection in pipelines using IIoT at the edge. Sensors, 22(11). https://doi.org/10.3390/s22114105
Suhara, A., Karyadi, Herawan, S. G., Tirta, A., Idris, M., Roslan, M. F., Putra, N. R., Hananto, A. L., & Veza, I. (2024). Biodiesel sustainability: Review of progress and challenges of biodiesel as sustainable biofuel. Clean Technologies, 6(3), 886–906. https://doi.org/10.3390/cleantechnol6030045
Tang, H. H., & Ahmad, N. S. (2024). Fuzzy logic approach for controlling uncertain and nonlinear systems: A comprehensive review of applications and advances. Systems Science & Control Engineering, 12(1), 2394429. https://doi.org/10.1080/21642583.2024.2394429
Wong, B., & McCann, J. A. (2021). Failure detection methods for pipeline networks: From acoustic sensing to cyber-physical systems. Sensors, 21(15). https://doi.org/10.3390/s21154959
Zainurin, S. N., Ismail, W. Z. W., Mahamud, S. N. I., Ismail, I., Jamaludin, J., Ariffin, K. N. Z., & Kamil, W. M. W. A. (2022). Advancements in monitoring water quality based on various sensing methods: A systematic review. International Journal of Environmental Research and Public Health, 19(21). https://doi.org/10.3390/ijerph192114080
Zhang, Y., Zhang, B., Shen, C., Liu, H., Huang, J., Tian, K., & Tang, Z. (2024). Review of the field environmental sensing methods based on multi-sensor information fusion technology. International Journal of Agricultural and Biological Engineering, 17(2), 1–13. https://doi.org/10.25165/j.ijabe.20241703.8423
Zhuang, Y., Sun, X., Li, Y., Huai, J., Hua, L., Yang, X., Cao, X., Zhang, P., Cao, Y., Qi, L., Yang, J., El-Bendary, N., El-Sheimy, N., Thompson, J., & Chen, R. (2023). Multi-sensor integrated navigation/positioning systems using data fusion: From analytics-based to learning-based approaches. Information Fusion, 95, 62–90. https://doi.org/10.1016/j.inffus.2023.01.025
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Novia Utami Putri, Fauzi Ibrahim, Retno Wahyudi, Adam Wisnu Murti, Jaka Persada Sembiring, Miftahul Fahmi, Farli Rossi

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