Design and Development of a Nutrient Monitoring and Control System for Hydroponic Plants Using Mamdani Fuzzy Logic and IoT
Abstract
Manual monitoring of hydroponic nutrients is potentially inconsistent, which can disrupt plant growth, particularly in pakcoy (Brassica rapa L.) cultivation within limited urban spaces. This study aims to design an Internet of Things (IoT)-based hydroponic nutrient monitoring and control system utilizing the Mamdani Fuzzy Logic method to determine nutrient dosage based on three inputs: nutrient concentration (TDS), solution temperature, and solution level. The system was developed using the Prototype method with an ESP32 microcontroller, TDS sensor, DS18B20 sensor, HC-SR04 sensor, dosing pumps, and a Laravel-based web server and dashboard. The rule base consists of 45 rules with PWM value as the output. Testing included sensor accuracy against reference measuring instruments, the conformity of the system's fuzzy outputs with simulations, control response, and dashboard performance. The results show average sensor errors of 0.0108% for the TDS sensor, 0.29% for the DS18B20, and 0.80% for the HC-SR04; an average fuzzy output difference of 0.007% compared to simulation across five test combinations; and an average dashboard display delay of 5 seconds. In a response test, nutrient concentration intentionally reduced to 254.45 ppm returned to the normal range (610.2 ppm) in approximately 10 minutes with the automatic activation of the pumps. Testing remains limited to a prototype scale and a single response scenario; therefore, long-term effectiveness on plant growth requires further investigation.