Next Article in Journal
Abstracts of the 1st International Online Conference on Bioengineering
Previous Article in Journal
Experimental Analysis of an Autonomous Driving Strategy for a Four-Wheel Differential Drive Agricultural Rover
 
 
engproc-logo
Article Menu

Article Menu

Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Monitoring and Control of Nutrient Feed and Environmental Condition of Hydroponic Vegetable Plants †

Department of Electrical Engineering, Universitas Muhammadiyah Surakarta, Sukoharjo 57169, Indonesia
*
Author to whom correspondence should be addressed.
Presented at the 8th Mechanical Engineering, Science and Technology International Conference, Padang Besar, Perlis, Malaysia, 11–12 December 2024.
Eng. Proc. 2025, 84(1), 81; https://doi.org/10.3390/engproc2025084081
Published: 21 March 2025

Abstract

:
The expansion of residential zones and a surge in agricultural land evictions to make room for building construction, offices, and shopping centers are on the rise. As farmland shrinks, one mitigation strategy involves exploring alternative planting methods, like hydroponics. Hydroponic growing media eliminate the necessity for soil as the primary medium for plant growth. Hydroponic farming relies on high-quality water nutrients to sustain fertility. Therefore, monitoring and controlling water quality continuously is crucial, ideally in real-time and through automated processes whenever feasible. This study advances automatic water quality control by employing an Arduino Mega microcontroller alongside a range of sensors. The displayed data represent measurements taken by the sensor, which will subsequently inform actuator control commands. The processed data will also be transmitted to the Wi-Fi module (and sent to a smartphone device) for monitoring purposes. Testing includes response-time tests for each sensor, disturbance test, and field test. The system performed the automation process as intended.

1. Introduction

The shrinking of agricultural land, along with the increasing population and the rise of urbanization in cities, has resulted in less and less available land for farming. This, along with other factors, has caused a decline in agricultural productivity. These challenges have sparked breakthroughs in the field of agriculture, particularly in household self-sustaining agriculture [1]. Hydroponic growing media is one such innovation, offering a solution to the scarcity of available land. This system uses water and mineral nutrient solutions without using soil as its primary medium. Hydroponic planting methods generally include several techniques for supplying the necessary nutrient solutions, two of which are the Nutrient Film Technique (NFT) and the Deep Flow Technique (DFT) [2].
The DFT system is a technique where nutrients are supplied by submerging the roots in nutrient-rich water. One advantage of the DFT system is that it does not rely on a water pump, as it utilizes the standing nutrient water in the pipes [2]. However, the more commonly used hydroponic method is the NFT system. This system involves irrigation with well-circulated nutrient water, which requires a water pump. The principle of NFT is that plant roots rest in a shallow layer of nutrient water, absorbing nutrients from it. The water must be continuously circulated to keep the roots wet, preventing root damage [3].
Despite its advantages, the hydroponic system has some drawbacks, such as the need for more advanced knowledge of the production system, especially in monitoring water quality and pH in real-time to ensure the plants receive adequate nutrition. Additionally, experience and technical skills in hydroponic methods are essential. Another downside is the relatively high initial investment cost [4,5].
To achieve better efficiency than manually monitoring nutrients, there is a need for a way to automatically maintain water quality. The research in [6] presents a concept for automatic monitoring and control of pH levels and nutrients in hydroponic water using a control device. The study in [7] adds an IoT-based automatic control module to gather data from sensors that can be monitored in real-time.
In general, hydroponic plant cultivation has existed for a long time [5], and training and empowerment programs for communities have frequently been carried out [8,9]. The addition of IoT—and thus real-time monitoring—to hydroponic systems has been a research trend in recent years [10].
The difference between previous research and the study conducted by the authors lies in the sensor and actuator devices, with a more comprehensive set of tests. These tests include response-time testing for the sensors and disturbance response testing. As far as the author knows from the literature review, these aspects are rarely explored.
This research broadly focuses on automation that can be monitored in real-time using IoT (Internet of Things), aiming to measure parameters efficiently, ensure effective monitoring, and reduce human error. The Internet of Things, in essence, creates an intelligent system environment by connecting devices to the internet, providing more comprehensive capabilities for exchanging and collecting data [11].

2. Methods

This section will present an overview of the device’s operation, the design of the hydroponic system, and the electronic design. The overview will cover the general working principles of the device. The system design will discuss the overall functional design of the device. The electronic design will cover the hardware and software design, along with their workflows.

2.1. Overview

A control system generally consists of a control center, sensors, and actuators. The main control module in this hydroponic system uses the Arduino Mega Pro Mini 2560, which functions as the system’s central hub, responsible for processing data received from sensors and triggering actuators (motors via an automatic ON/OFF relay).
Figure 1 shows the block diagram of the IoT-based hydroponic automation system design, with the NodeMCU device used to implement the IoT features. This device is an open-source microcontroller like Arduino, which serves as a data receiver and processor connected to the internet. NodeMCU also has a built-in WiFi chip equipped with the TCP/IP protocol [12].
This design incorporates four sensors: a water level (WL) float sensor, an acidity (pH) sensor, a TDS (Total Dissolved Solids) sensor, and a temperature sensor. There are five actuators used in the system: nutrient dosing pumps (A and B mix), acidity up/down dosing pumps, main DC circulation pumps, mixing DC pumps, and AC well pumps.

2.2. System Design

Hydroponics includes several planting techniques, one of which is the Nutrient Film Technique (NFT). This method uses well-circulated and recirculated water, making it efficient in conserving water and effective in providing constant nutrients to the roots [13]. In NFT, constant irrigation and fertilization are key, which is why the hydroponic automation system applied focuses on the automatic control of irrigation, nutrient levels, and pH balance [5].
Figure 2 illustrates the automation design of this hydroponic system. The primary concept of this automated method is to maintain correct circulation of water and nutrients. This process requires sensors to read environmental conditions and actuators that can be controlled to intervene in various system variables. The operating principle of the automatic hydroponic nutrient controller can be explained as follows.
First, the water level (WL) sensor monitors the water level in the hydroponic irrigation tank. If the water level drops and the WL sensor reaches its lower limit, the data sent to the microcontroller will be processed, and the microcontroller will activate the actuator (in this case, the AC motor pump in the well). Once the tank is filled (when the water reaches the upper limit), the pump will automatically shut off.
Next, the water will flow through all the hydroponic channels. The TDS sensor will then read the nutrient conditions and send data to the microcontroller indicating that the nutrient levels are not within the desired range. The microcontroller will instruct the activation of the A and B mix dosing pumps. When the nutrient concentration reaches the set PPM (Parts Per Million) level, the dosing pumps will turn off. Once the A and B mix dosing pumps are off, the stirring motor will turn on.
When the irrigation tank has been mixed with the AB mix solution, this condition will affect the pH level of the water. The pH sensor will detect any deviation in pH and send data to the microcontroller to activate the pH up–down dosing pumps. If the water’s pH level is adjusted to the desired range, the microcontroller will then command the dosing pumps to turn off. Along with the cessation of the pH dosing pumps, the DC stirring motor in the irrigation tank will also stop.

2.3. Control Flow Strategy

The control strategy for this system, it is essential for the microcontroller to receive signals from sensors, compare them to set points, and then intervene in the environment. Figure 3 illustrates the execution flow of the control program.
The program starts with the declaration of data types for the variables used. In the loop, the microcontroller receives data from the sensors, which are then displayed on the monitor via serial communication, followed by communication between Arduino and NodeMCU. Data input from Blynk, such as the setpoint PPM, follows.
Next, the microcontroller checks the water level status and activates or deactivates the well pump as needed. The turbidity sensor, or TDS, will measure the nutrient solution concentration in the tank. If the concentration is low, the actuator will turn on the AB mix pump as necessary; if it is high, the well water pump actuator will be activated. After these actions, the microcontroller will command all actuators to turn off for a period of time.
Then, the pH sensor will measure the acidity level in the tank and activate the pH up and pH down pumps as required. At the end of the loop, the microcontroller will turn off all actuators, leaving only the main pump running. The program will then repeat, starting with reading the water level.

3. Results and Analysis

After the initial assembly and startup process, the system is tested in parts and as a whole. Sensor testing includes basic testing and response-time testing. Overall testing encompasses disturbance testing and field testing.

3.1. Sensor Testing

The first test is the pH sensor calibration test, conducted to determine the sensor’s accuracy by testing various liquid samples. This includes nutrient water, pH buffer solutions at 4.0 and 6.87, AB mix solution, distilled water, well water, and soapy water. A calibrated pH meter is then used for comparison with the pH sensor’s readings, allowing for the assessment of the sensor’s accuracy.
The readings from the pH sensor are listed in Table 1. The installed pH sensor shows a small error margin, with a deviation of 0.026 for measurements around 7.0.
The samples used for testing the TDS sensor are of a hydroponic nutrient solution A and B mix, which have different PPM levels, as shown in Table 2. The data obtained show a comparison between the TDS meter and the TDS sensor, with an average error of 1.079. Compared to measurements in the hundreds, this indicates that the TDS sensor has good accuracy. The sensor also responds quickly, making it effective and accurate for readings.
Temperature measurements and calibration were performed using the DS18B20 temperature sensor, with the results displayed in Table 3. The sensor yielded an average deviation of 0.42 °C for measurements around 30 °C, indicating relatively small variation.
Each sensor has a non-zero response time and varies from other sensors. The sensor testing in this study also involved measuring response times. A good sensor should exhibit a quick and consistent response time. Figure 4 shows the response-time graph for the pH sensor model 4502C. Initially, the pH of the water was set to 4.07, and the sensor stabilized readings between 3.84 and 3.98. When the sensor was suddenly moved to water with a pH of 9.09, it was able to read the new pH value between 8.68 and 8.70. The pH sensor took approximately 12 s to stabilize its readings.
The next response-time test is for the TDS sensor, as shown in Figure 5. Initially, the water sample in the tank had a TDS value of 311 ppm. When the TDS meter sensor was first placed in this tank, it displayed a reading around 310 ppm. The sensor was then abruptly moved to water with a TDS value of 830 ppm, and it measured approximately 834 ppm. The TDS sensor took about 4 s to stabilize. Figure 6 displays the response-time graph for the DS18B20 temperature sensor. The initial water sample tested was at room temperature, 27.3 °C. The sensor was then quickly moved to a hot water sample with a temperature of 47.3 °C. As seen, the DS18B20 sensor responded well and stabilized its readings after about 10 s.

3.2. System Testing with Disturbance

The goal of system testing is to determine how well the device responds to disturbances in the environment. The first test of the hydroponic automation system involves disturbance testing on the water’s pH. For a set PPM range of 400–550 on Blynk, the TDS sensor detected a value of 521 ppm, which did not trigger any actuator intervention.
The pH level of the water was then deliberately raised to 8.34 to observe the sensor and actuator responses to sudden changes. The results, shown in Figure 7, demonstrate that the pH down pump effectively worked to correct the pH imbalance in the solution.
The second disturbance test involved changing the nutrient levels in the water by adding well water to the tank. This action lowered the water’s PPM, as shown in Figure 8. When the sensor detected a PPM value of 444, the A and B mix pumps were activated. When the sensor detected a PPM of 589, the A and B mix pumps turned off, because the Blynk setpoint was set between 400 and 550 ppm. This condition indicated excess nutrients in the water, so the well pump was turned on when the PPM was 568 and turned off when the sensor measured 537 ppm. All pumps then turned off, and the TDS sensor stabilized at 521 ppm.
In the first disturbance test, the TDS values showed slight oscillations in actuator automation. Therefore, a second TDS disturbance test was conducted with an extended setpoint range of 550–740 ppm and a slower duration for the A and B mix dosing pumps. The results, depicted in Figure 9, showed improved system performance. However, the process of adding nutrients was somewhat slower because the pump worked for a shorter duration.

3.3. Field Testing

Field testing of the system was conducted over a period of seven days with one-week-old plants, which required low nutrient levels (540–650 ppm). Data were collected continuously for 24 h, with samples taken twice daily, in the morning and evening. The results are summarized in Table 4.
The initial data review indicated no significant changes in actuator conditions due to stable sensor readings aligning with the setpoints. To gain a more detailed understanding of sensor and actuator behavior, a more granular data collection method was needed.
Subsequent field data collection focused on detailed changes over approximately 2 h and 30 min, with sensor values for TDS and pH recorded every 15 min. The data presented in Figure 10 showed that the TDS sensor values experienced fluctuations. At 21:13, the TDS value decreased, triggering the AB mix pumps to activate until 21:28. Following this, at 21:28, the pH level increased, causing the pH down pump to activate. The pH down pump then turned off at 21:43 but was reactivated 15 min later due to another rise in pH levels. The pH down pump finally turned off at 22:13. These actuator changes are illustrated in Figure 10.
From this field test, it was concluded that the pH sensor exhibited less stability compared to the TDS sensor. Although the TDS sensor was generally stable, it occasionally showed drops in readings every minute, but this did not significantly impact the activation of the AB mix pumps.

4. Discussion and Concluding Remarks

Based on the experiments and observations, we will discuss a number of issues and then present concluding remarks and recommendations for further development.

4.1. Discussion

Comparison with manual methods suggests that the automated one lessens the need for human attendance. The downside is that the automated method increases the number of failure points that must be taken care of. To improve this situation, one needs a more robust design and engineering execution.
There is also a concern regarding sensor stability in varying environmental conditions. The sensors used in this work are capable of withstanding a wide range of temperatures, acidities, and other environmental elements.
The sensors used in the system respond relatively quickly to the dynamics of the overall system. This is a good foundation for effective control. The sensors perform like other physical measurement devices, exhibiting statistical discrepancies but generally providing expected average values. With regard to operational continuity, the system is designed to continue functioning even if the Wi-Fi network is disconnected. In such cases, the control system will refer to the last input values.

4.2. Recommendations for Further Development

Sequential Control Process Improvement: The current system’s sequential control process among variables needs enhancement. If there is a reading error for one variable, the program will repeatedly process that variable without advancing to other processes. Future developments should focus on designing a system capable of concurrently managing all desired variables in real-time.
Real-Time Concurrent Control: Implement a system that can handle multiple variables simultaneously and adjust them in real-time. This would improve the overall efficiency and response to changing conditions.
Notification Feature: Adding a notification feature to alert the hydroponic garden owner of any issues requiring attention would significantly enhance the system’s usability and maintenance.
These improvements would contribute to a more robust and user-friendly hydroponic automation system.

Author Contributions

Conceptualization, N.R. and F.S.; methodology, F.S.; software, N.R.; validation, F.S.; formal analysis, N.R.; investigation, N.R. and F.S; resources, N.R.; data curation, N.R.; writing—original draft preparation, N.R.; writing—review and editing, F.S.; visualization, N.R.; supervision, F.S.; project administration, F.S. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data is available upon request.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Putra, E.S.; Jamaludin, J.; Djatmiko, M.D. Comparation of hydroponic system design for rural communities in Indonesia. J. Arts Humanit. 2018, 7, 14–21. [Google Scholar]
  2. Son, J.E.; Kim, H.J.; Ahn, T.I. Hydroponic systems. In Plant Factory: An Indoor Vertical Farming System for Efficient Quality Food Production; Kozai, T., Niu, G., Takagaki, M., Eds.; Academic Press: Cambridge, MA, USA, 2020; pp. 273–283. [Google Scholar]
  3. Maucieri, C.; Nicoletto, C.; Junge, R.; Schmautz, Z.; Sambo, P.; Borin, M. Hydroponic systems and water management in aquaponics: A review. Ital. J. Agron. 2018, 13, 1–11. [Google Scholar]
  4. Kaiser, C.; Ernst, M. Hydroponic Lettuce; Center for Crop Diversification—University of Kentucky College of Agriculture, Food and Environment: Lexington, Kentucky, 2016; no. CCD-CP-63. [Google Scholar]
  5. Roberto, K.F. How to Hydroponics, 4th ed.; Future Garden Inc.: Melbourne, Australia, 2003. [Google Scholar]
  6. Rico, A.L.J. Automated pH monitoring and controlling system for hydroponics under greenhouse condition. J. Eng. Appl. Sci. 2020, 15, 523–528. [Google Scholar]
  7. Purwanto, A.D.; Supegina, F.; Kadarina, T.M. Sistem kontrol dan monitor suplai nutrisi hidroponik sistem deep flow technique (DFT) berbasis arduino NodeMCU dan aplikasi android. J. Teknol. Elektro 2020, 10, 152–158. [Google Scholar] [CrossRef]
  8. Austin, T.; Marleni, M. Implementasi program kampung iklim: Urban farming melalui hidroponik dan budikdamber di Kelurahan Sialang Palembang. J. Abdimas Indones. 2021, 1, 96–104. [Google Scholar] [CrossRef]
  9. Hartoko, G.; Ramadhanty, V.; Dewi, R.; Suratmi, S.; Situmorang, L.; Jumaedi, J.; Lubis, M.A. Pemanfaatan lahan dalam pengelolaan tanaman hidroponik untuk meningkatkan UMKM di Desa Cideheng Tengah. Indones. Collab. J. Community Serv. 2021, 1, 140–145. [Google Scholar]
  10. Hadinata, A.; Mashoedah. Internet of Things-based hydroponic: Literature review. J. Phys. Conf. Ser. 2021, 2111, 012014. [Google Scholar]
  11. Kashyap, M.; Sharma, V.; Gupta, N. Taking MQTT and NodeMCU to IoT: Communication in internet of things. Procedia Comput. Sci. 2018, 132, 1611–1618. [Google Scholar]
  12. Parihar, Y.S. Internet of things and NodeMCU. J. Emerg. Technol. Innov. Res. 2019, 6, 1085. [Google Scholar]
  13. Mugundhan, R.M.; Soundaria, M.; Maheswari, V.; Santhakumari, P.; Gopal, V. Hydroponics—A novel alternative for geoponic cultivation of medicinal plants and food crops. Int. J. Pharma Bio Sci. 2011, 2, 286–296. [Google Scholar]
Figure 1. Functional block diagram of the hydroponic system developed.
Figure 1. Functional block diagram of the hydroponic system developed.
Engproc 84 00081 g001
Figure 2. The hydroponic design considered in this paper.
Figure 2. The hydroponic design considered in this paper.
Engproc 84 00081 g002
Figure 3. Flowchart of the hydroponic system.
Figure 3. Flowchart of the hydroponic system.
Engproc 84 00081 g003
Figure 4. Time-response graph of the acidity sensor.
Figure 4. Time-response graph of the acidity sensor.
Engproc 84 00081 g004
Figure 5. Time response graph of the TDS sensor.
Figure 5. Time response graph of the TDS sensor.
Engproc 84 00081 g005
Figure 6. Time response graph of the temperature sensor.
Figure 6. Time response graph of the temperature sensor.
Engproc 84 00081 g006
Figure 7. Acidity sensor and pH down actuator test.
Figure 7. Acidity sensor and pH down actuator test.
Engproc 84 00081 g007
Figure 8. First TDS sensor and actuator test. Also shown here is the state of the AB mix actuator.
Figure 8. First TDS sensor and actuator test. Also shown here is the state of the AB mix actuator.
Engproc 84 00081 g008
Figure 9. Second TDS sensor and actuator test, with AB mix motor state shown.
Figure 9. Second TDS sensor and actuator test, with AB mix motor state shown.
Engproc 84 00081 g009
Figure 10. Sensor and actuator states pertaining to field test.
Figure 10. Sensor and actuator states pertaining to field test.
Engproc 84 00081 g010
Table 1. Acidity sensor test result using pH meter.
Table 1. Acidity sensor test result using pH meter.
Sample of LiquidspH Sensor ReadingAvg.pH MeterDiff.
123
1Nutrisari drink3.693.743.773.733.760.027
2Liquid with PH 4.03.954.024.084.0174.010.007
3Liquid with PH 6.876.836.856.886.856.90.047
4AB mix solution6.786.816.836.816.850.043
5Bottled water6.746.776.896.806.810.01
6Well water6.696.766.826.766.770.013
7Soap solution7.137.187.217.177.210.037
Average of error0.026
Table 2. A TDS sensor and TDS meter comparison.
Table 2. A TDS sensor and TDS meter comparison.
Sample of LiquidTDS Sensor Reading (PPM)Avg.TDS MeterError Diff.
123
1Liquid 1634634.76634.57634.446340.443
2Liquid 2477.57477.01477.00477.194770.193
3Liquid 3393.76394.23392.00393.333921.33
4Soap solution445.87446.4448.26446.844521.42
5Well water219.37219.63221.04220.012182.013
Average of error1.079
Table 3. Thermometer and D18B20 sensor comparison.
Table 3. Thermometer and D18B20 sensor comparison.
Water SampleDS18B20 ReadingAvg.Temp. (°C)Error Diff.
123
1Hot water46.546.546.4446.4846.20.28
2Warm water33.8133.8133.8133.8134.70.89
3Room water28.3128.3128.3128.3128.40.09
Average of error0.42
Table 4. Result from field testing.
Table 4. Result from field testing.
TimePHTDS-PPMTemp. (°C)WFL, BottomWFL, Up
09.236.7959928LowHigh
15.076.9161328LowHigh
09.006.958928LowHigh
15.456.7157428LowHigh
10.056.8457228LowHigh
16.236.8258028LowHigh
09.176.9157928LowHigh
14.496.7956828LowHigh
08.436.6657127LowHigh
16.176.8556827LowHigh
09.406.7356227LowHigh
16.556.9155927LowHigh
08.136.555427LowHigh
15.576.8454427LowHigh
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Rohman, N.; Suryawan, F. Monitoring and Control of Nutrient Feed and Environmental Condition of Hydroponic Vegetable Plants. Eng. Proc. 2025, 84, 81. https://doi.org/10.3390/engproc2025084081

AMA Style

Rohman N, Suryawan F. Monitoring and Control of Nutrient Feed and Environmental Condition of Hydroponic Vegetable Plants. Engineering Proceedings. 2025; 84(1):81. https://doi.org/10.3390/engproc2025084081

Chicago/Turabian Style

Rohman, Nur, and Fajar Suryawan. 2025. "Monitoring and Control of Nutrient Feed and Environmental Condition of Hydroponic Vegetable Plants" Engineering Proceedings 84, no. 1: 81. https://doi.org/10.3390/engproc2025084081

APA Style

Rohman, N., & Suryawan, F. (2025). Monitoring and Control of Nutrient Feed and Environmental Condition of Hydroponic Vegetable Plants. Engineering Proceedings, 84(1), 81. https://doi.org/10.3390/engproc2025084081

Article Metrics

Back to TopTop