ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. TEKNOSAINS: Jurnal Sains. Teknologi dan Informatika Vol. No. 2, 2025, page. http://jurnal. id/index. php/tekno https://doi. org/10. 37373/tekno. System design for turbidity control in aquaponic ponds Aditya Aprilianto. Weny Indah Kusumawati*. Harianto. Heri Pratikno *Dinamika University. Indonesia. Jln. Raya Kedung Baruk 98. Surabaya. East Java. Postal Code 60298 * Corresponding Author: weny@dinamika. Submitted: 04/03/2025 Revised: 05/05/2025 Accepted: 13/05/2025 ABSTRACT Aquaculture is fish farming, and hydroponics is the cultivation of plants/vegetables without soil, which means utilizing water and growing media. Aquaponic systems are a combination of fish farming . and soilless plant/vegetable farming . , creating a mutually beneficial relationship. This research aims to design and implement an automated system capable of monitoring and controlling the water turbidity level in aquaponic ponds using the SEN0189 sensor integrated with the Internet of Things (IoT) platform. The developed system utilizes a turbidity sensor, float switch. NodeMCU ESP8266 microcontroller, and connection to the Firebase cloud to enable real-time remote monitoring. The control logic in the system is designed to be able to take automatic water draining and filling actions based on the detected turbidity level parameters. Tests were conducted 98 times, showing a sensor success rate of 92% with 8% non-conforming readings due to program logic The tests also revealed the significant influence of environmental lighting, where sensor results at night showed higher values despite clear water conditions. In addition, the system successfully avoided overlapping processes between draining and filling, with an operational success rate of 100% in the overall device The results show that the system is effective and reliable for maintaining water quality in aquaponic systems, as well as providing users with the convenience of remotely monitoring and managing water conditions through an IoT connection. This system can be an efficient alternative solution to support the success of fish and plant farming in household and commercial scale aquaponics. Keywords: Aquaponics. ESP8266. Float Switch. SEN0189 Sensor. Water Turbidity. INTRODUCTION Hydroponics is an agricultural technique that uses water and does not use soil as a growing medium. Hydroponic farming system is one of the alternatives that can be used to increase agricultural productivity, especially on limited land . Various cultivation methods are being developed, including the aquaponic system. The aquaponic system can be maximally utilized on a small area of land and can be used in home gardens. This system is a combination of aquaculture and hydroponics so as to create a symbiotic mutualism or called mutual benefit. Aquaponics is a combination of aquaculture and hydroponic systems that can be a solution to overcome limited land and water resources and improve food security. In aquaponic systems, water quality in fish farming is one of the main requirements for the success of the cultivation process . Water from the fish pond cannot be flowed directly to the plants but must go through a filter system and a nitrification system. The aim is to precipitate fish waste and convert nitrogen-containing elements such as urea and ammonia that are abundant in fish ponds. This is because plants only absorb nitrogen elements in the form of ions. In addition, nitrification prevents plants from being poisoned due to the dominance of nitrogen-containing elements . This research makes a system design for turbidity control in aquaponic ponds using turbidity sensors and float switches for draining and filling the pond. In addition, this system is designed to TEKNOSAINS: Jurnal Sains. Teknologi & Informatika is licensed under a Creative Commons Attribution-NonCommercial 4. 0 International License. ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. DOI 10. 37373/tekno. automatically monitor and control the level of water turbidity in real-time in aquaponic ponds, and can be integrated with IoT technology to be efficient and easy to monitor remotely. The level of water quality is one of the parameters . In designing an aquaponic system, it is necessary to pay attention to various aquarium water quality factors that affect the circulation of the system . Water is an important medium in aquaponic systems because it is a place for fish to grow and a source of food for plants. Water is very easily polluted and contaminated with harmful substances during the maintenance process. Therefore, it is necessary to maintain the quality of aquaponic water during the cultivation process . Turbidity is an optical phenomenon in solution that is measured based on how much light is taken up and emitted by the matter in the water . Turbid water can be caused by various factors, including dissolved solids that are inorganic and organic. Turbidity sensor is an instrument used as a standard testing tool to determine the degree of turbidity of a water. If dirty water is not treated, it can inhibit fish growth . This sensor is able to detect changes in light intensity caused by the presence of particles in The degree of water clarity is one of the parameters to determine the condition of water so that it can be utilized by living things. There are also other parameters that can be used as a reference, such as: pH value . Conductivity. Temperature. Total Dissolved Solid (TDS) . The contribution that can be made to this research is to use one sensor and two actions, namely the turbidity sensor (Turbidity senso. to detect the degree of water turbidity and the action is to drain and fill the pond using the float switch as the switch. During draining, no other actions are performed If the pool shows very clear water, then there is no action, but if the Turbidity value is greater than 129, then there is an action to drain the pool until there are 26 liters of pool left or 20%. METHOD Figure 1 shows the prototype design with TDS sensor input that detects plant ppm and pH sensor that detects the pH of the water supplied to the plants. Turbidity sensor detects the level of turbidity in the aquaponic pond. The inputs are processed by the Node MCU microcontroller. This signal is processed by a relay and opens a solenoid valve to reduce and maintain the amount of water until the float switch sensor turns off. The diagram depicts an Internet of Things (IoT) based automatic monitoring and control system consisting of: physical sensors . TDS), pump automatic control, local processing (Arduin. , cloud connection (ESP32 and Firebas. , and user interface (IoT Dashboar. Relay (Pum. TDS Arduino UNO ESP8266 Firebase Dashboard IoT Relay (Selenoi. Float Switch Sensor Turbidity Servo Figure 1. Block diagram of the system User 248 Aditya Aprilianto. Weny Indah Kusumawati. Harianto. Heri Pratikno System design for turbidity control in aquaponic ponds ESP8266 The NodeMCU ESP8266 is a module from the ESP8266 family of IoT (Internet of Thing. platform modules of the ESP-12 type. The ESP32 is a microcontroller created by Espressif Systems and is an advancement from its earlier version, the ESP8266 . The ESP8266 module is an inexpensive yet very powerful platform for online communication or control. Both stand alone and using an additional microcontroller in this case Arduino as the controller. In terms of function, this module is almost the same as the Arduino module platform, but the difference is that it is specifically designed to connect to the Internet . ESP8266 is a Wi-Fi module . , that functions as an addition to microcontrollers such as Arduino to connect directly to Wi-Fi networks and establish TCP/IP connections . Based on Figure 1, the ESP8266 functions as a Wi-Fi module, receiving data from the Arduino and sending it to the cloud (Firebas. SEN0189 Sensor The SEN0189 sensor measures or detects the level of water turbidity . The DFRobot SEN0189 sensor works according to changes in light intensity. This is because the particles are mixed with water. The change in light intensity emitted will vary with the change in turbidity of the measured water. This is then converted into electrical parameters so that it can be expressed as a water turbidity value in NTU The data from this sensor is processed by the NodeMCU ESP8266 microcontroller. From the system block diagram, the SEN0189 sensor is used to read the turbidity of the water, because basically the turbidity particles cannot be seen by the direct eye. Servo MG996R A servo motor is a device that acts as a rotating motor with a closed-loop feedback control system . designed to control and ensure the angular position of the output shaft . The servo motor consists of several components. Consists of a DC motor, gear circuit, control circuit and potentiometer. Gears placed on the DC motor shaft are used to slow down shaft rotation and increase servo motor While the potentiometer changes the resistance as the motor rotates to set the shaft angle position limit . Arduino Uno Arduino UNO is a microcontroller board based on ATmega328P . The Arduino Uno has 14 digital I/O pins . of which can be used as PWM output. , 6 analog inputs, a 16 MHz ceramic resonator, a USB connector, a power jack, an ICSP header, and a reset button. The Arduino UNO has everything needed to support any microcontroller. Simply connect to a computer with a USB cable, or power it up with an AC-DC adapter, or battery to start the process . Based on Figure 1. Arduino UNO is tasked with reading data from TDS and pH sensors. Arduino UNO also controls relays . based on certain logic, then sends data to ESP32. Float Switch A Float Level Switch is a type of liquid level sensor that uses a float to operate the switch. Floats are often used to control other devices such as alarms and pumps when the water level rises or falls to a certain point. A Float Level Switch is a continuous level sensor with a magnetic float that moves up and down as the water level changes. The movement of the float creates a magnetic field that moves a closed reed switch on the stem of the level sensor, opening or closing the switch. So, a Float Level Switch detects the level of liquid in a tank or container. It floats above the liquid surface and acts as a mechanical switch when the liquid level rises or falls. Flowchart System Based on Figure 2, the microcontroller will try to connect to the internet via Firebase when the turbidity sensor detects water exceeding 220. If the connection is successful, a notification will be sent. If the connection fails, the pool servo only releases 20% of the water, the bottom float switch becomes If the faucet solenoid valve is working properly, the pool will be filled until it reaches 100% Then, if successful, the solenoid valve will stop and the system will be completed. ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. DOI 10. 37373/tekno. Start Reading Turbidity Sensor Value > 220 Wifi Connection Wifi Firebase Submit Database Send Notification Servo closed Floatswitch1 Servo closed Selenoid faucet open Floatswitch2 Selenoid faucet closed Figure 2. System flowchart Tool Design Figure 3 shows the design of the aquaponic apparatus, with pipes for aquaponic plants at the top and a pond for fish farming at the bottom. Figure 3. Tool design 250 Aditya Aprilianto. Weny Indah Kusumawati. Harianto. Heri Pratikno System design for turbidity control in aquaponic ponds The sensor for measuring turbidity is placed at the very top of the aquaponic pond. Meanwhile, there are two different locations for the float switch in the pool. At the first location, the float switch detects when the water has reached its maximum volume, while at the second location, the float switch functions when the remaining water volume is approximately 20% of the total pool capacity. A turbidity sensor placed at the top of the pool can monitor water quality precisely, while float switches installed at two points provide important data about water levels. This information can assist in regulating water flow and maintaining the best conditions for aquatic organisms in the system. Sensor Priority This research uses 2 sensors and 4 actions, namely the PH sensor to determine the acidity of the water, while to stabilize the acidity of the water the action is to add pH up and pH down, and the TDS sensor to determine the PPM (Parts Per Millio. of water, while the action is to add AB Mix and drain the fish pond. The four activities above do not take place simultaneously and must be carried out Therefore, this is where the PH sensor detection first begins. If the pH sensor detects the acidity of the fish pond water is less than 6, the action taken is to add pH up to increase the pH of the pond water, and if the detected pH of the pond is greater than 7, the action taken is to add pH down, a liquid to lower the pH level of the fish pond water. If the pH sensor detects the pH of the water between 6 to 7, the action is taken based on the TDS sensor. If the TDS sensor detects a water ppm value smaller than 560, the action is to add AB Mix to increase the water ppm value. If the TDS sensor detects a water ppm value greater than 840, a fish pond draining action is triggered. So here the most important sensor is the pH sensor because the acidity of the water is very important for aquaponic plants and fish. Only one action is executed at a time until the specified time is completed. When the waiting period is over, the next sensor is re-selected, which is required to take action. RESULTS AND DISCUSSION SEN0189 Sensor testing The SEN0189 Turbidity Sensor test was conducted by connecting the MCU node to Firebase to obtain the turbidity value. The test was conducted using a large amount of food that settles in the pond, causing the pond water to become cloudy. In Table 1, the test was performed 98 times by measuring 1 liter of water, to which 5 grams of fish food was slowly added for 5 seconds each. The results are shown in Table 1. Table 1. SEN0189 Sensor test results Water Value 0 - 88 Sensor Water 89 - 220 Sensor 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 0 - 88 89 - 220 89 - 220 0 - 88 89 - 220 Value range ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. DOI 10. 37373/tekno. Water Value 0 - 88 0 - 88 Sensor Water 89 - 220 greater than 220 Sensor 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 0 - 88 0 - 88 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 89 - 220 greater than 220 greater than 220 89 - 220 greater than 220 Value range In this study using number one for very clear water, number two for clear water, and number three for cloudy water. Table 1, it can be seen that the sensor value is in accordance with the predetermined value limit, except for the 67th trial to the 70th trial, which is 197. The sensor value does not match the limit which must be greater than 220. Likewise, the 73rd trial to the 76th trial which is 201. 94, does not match the specified limit which is greater than 220. It can be said that the sample gets a value of 38. 76 when not given food. Then slowly added 5 grams of food and obtained a maximum value of 87. Next, 5 grams of food was given again and the maximum value was 219. In this study there were 8 errors out of 98 tests, and 8% of these errors were caused by not meeting the program requirements. Discussion: The SEN0189 sensor showed a fairly sensitive and accurate response to increasing turbidity levels. The sensor value increases as the amount of suspended particles from fish feed decomposes in the water. This confirms that the sensor is able to effectively differentiate between clear, medium and turbid water conditions. Data from tests 1-7 showed a fixed value of 38. 76, which could indicate the stability of the sensor in clear water conditions. The sharp spike in value after continuous addition of feed indicates the sensor works in real-time and is consistent with changing water conditions. 252 Aditya Aprilianto. Weny Indah Kusumawati. Harianto. Heri Pratikno System design for turbidity control in aquaponic ponds Testing turbidity sensor action on an aquaponic pond This test is carried out to determine the level of turbidity of the pool. This test is carried out when the pool is filled with new water, the aim is to obtain the value of the SEN0189 sensor. Table 2. Analysis of sensor data in aquaponic ponds during the day and night Water Sensor value during the day Water Sensor value at night In Table 2, tests were carried out on clear water symbolized by the number 2 twice, namely at 10:00 am and 7:00 pm, which aims to determine the difference between morning and night light. In this experiment, each test was carried out 30 times with a time lag of five seconds. The turbidity of the pool water in the morning sensor value is 118. 22 to 120. At night it can be seen from Table 3 based on 30 tests, the turbidity level of the pool shows clear water with a value of 215. 15 to 219. 81, which shows that light has a significant effect on sensor readings. Discussion: The SEN0189 sensor works on the principle of light transmission, where the sensor emits light and detects how much is transmitted or scattered by particles in the water. During the day, natural lighting helps the sensor to detect the clarity of the water more accurately, but at night, the low ISSN 2087-3336 (Prin. | 2721-4729 (Onlin. DOI 10. 37373/tekno. light intensity causes distortion of the reading, so the sensor value increases even though the water remains clear. The test results indicated that the sensor showed less accurate readings in dark conditions, as the results did not match the physical reality of the water. This indicates that the sensor is greatly affected by ambient light, especially when used without artificial lighting. Overall tool testing Testing is done to ensure that all sensors are functioning properly, so all actions are not performed Table 3. Overall tool data analysis Float Switch 2 Condition Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Turbidity Very clear water Very clear water Very clear water Very clear water Very clear water Very clear water Very clear water Very clear water Very clear water Very clear water Clear water Clear water Clear water Clear water Clear water Clear water Clear water Clear water Clear water Clear water Float Switch 1 Condition Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Clear water Murky water Murky water Murky water Murky water Murky water Murky water Murky water Murky water Murky water Servo Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Off Actions No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining No draining Perform Perform Perform Perform Perform Perform Perform Perform Perform Perform Solenoid Valve Action No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling No filling Doing the Doing the Doing the Doing the Doing the Doing the Doing the Doing the Doing the Doing the Information Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable Suitable 254 Aditya Aprilianto. Weny Indah Kusumawati. Harianto. Heri Pratikno System design for turbidity control in aquaponic ponds Testing of all devices is done to ensure that all sensors are functioning properly, so not all operations are done at the same time. Table 3 shows that the operations performed were in accordance with the aquaponic pond arrangement. To avoid overlapping the many processes used in one hydroponic unit, each process is not routinely carried out at the same time. The overall test of the device is appropriate. Discussion: In very clear to clear water conditions . amples 1-. , the things that can be concluded are: . Float switches are off, indicating that the water level is still at normal limits, . Servo and solenoid valves are also off, meaning that no draining or filling is done, . The system automatically takes no action, and all results are in accordance with the expected control logic. In murky water conditions . amples 21-. , the things that can be concluded are: . Both float switches are on, indicating the system recognizes an abnormal condition, . Servo is active, automatically draining the water, . Solenoid valve is active, indicating the system is refilling the water, . All actions are performed automatically and in accordance with the conditions. This test also confirmed that each process was executed sequentially, with no overlap between draining and filling. The entire set of device actions showed consistent and appropriate results from 30 tests. CONCLUSION This research successfully designed and implemented an automatic control system to monitor and regulate the water turbidity level in aquaponic ponds using SEN0189 sensor, float switch, and IoT-based microcontroller (ESP8266 and Firebas. The system is able to identify changes in water turbidity levels in real-time and take automatic actions such as draining and refilling water. The test results show that: The SEN0189 sensor provides a sensitive and accurate response to changes in water turbidity due to the addition of fish feed, . Reading errors only occurred in 8% of 98 tests, indicating a sensor success rate of 92%, . The influence of environmental light is significant, where sensor readings at night tend to be higher even though the water remains clear, so lighting is an important factor in the accuracy of readings, . The system successfully executes automatic water draining and refilling actions without overlapping between processes, with an operational success rate of 100% in the overall device test. Overall, the system designed in this study proved to be effective and reliable in maintaining water quality in aquaponic ponds, and can be integrated into an IoT-based monitoring system that is efficient and easy to control remotely. REFERENCE