Professional Documents
Culture Documents
Development of Automated Monitoring System For Hydroponics
Development of Automated Monitoring System For Hydroponics
Email: fstay@swinburne.edu.my*
Abstract. Proposed is an automated monitoring system for hydroponics vertical farming. This
project aims to design and develop an automated system to monitor and maintain the level of
nutrition solution for the vertical farming process. The monitoring condition includes Electrical
Conductivity (EC), pH value, the liquid level as well as the water temperature of the nutrient
solution stored in the rectangular PVC. Instead of using soil as the growing medium, the project
used hydroponics method to grow the leafy vegetables, Bok Choy. The data monitored will be
sent and processed by Arduino Mega microcontroller and upload to Ubidots Cloud using the
ESP8266 NodeMCU. The system also provides control function to maintain the nutrient level
and amount of solution flows into each layer of vegetables. It is expected that the implemented
system would reduce the water and electrical consumption and allows the growth of the plant to
be supervised from time to time without having a person to look after.
1. Introduction
The world’s population is expected to increase by another 2 billion people by the year of 2050 and
eventually it will lead to a bigger challenge, feeding more people with limited lands [1]. Vertical farming
was considered to be one of the latest technologies in agriculture field to reduce the land used issue. It
is a practice of growing plants and vegetables on vertically inclined surfaces. This method of planting
produces foods in vertically stacked layers instead of farming vegetables or foods on a single level. This
type of farming method results in more crops production within the same square footage of growing
area [2].
Even so, monitoring process is essential in vertical farming process as it helps to monitor the
amount of nutrients provided to the plants. However, the expenses needed for the application of
advanced technologies for vertical farming are way too costly which include the buildings or
greenhouses for the plants, the lighting system and monitoring system of the vertical farm. Therefore,
this research proposed a solution by implementing an automated monitoring system for vertical farming
using hydroponics method. Aside from monitoring the nutrient solution, the proposed solution will
minimize the use of electricity and water when growing the Bok Choy plants.
This research project aims to develop an automated monitoring system for vertical farming that
is able to monitor the condition of nutrient solution and utilizes the least amount of electricity and water
to produce vegetables.
Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution
of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI.
Published under licence by IOP Publishing Ltd 1
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
2. Literature Review
2.1 Hydroponics Vertical Farming System
Hydroponics is one of the vertical farming techniques that uses nutrient solution as the growing medium
to cultivate some of the plants and leafy vegetables [3]. The reason of using nutrition liquid rather than
soil is because it can help to avoid a lot of problems such as soil borne diseases and cutworm that may
affect the plants and ruin the crops.
2
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
most of the process automatically. The sensory system implemented in the system will monitor the
condition of the plants and the growing stage to determine the time to harvest.
3. Methodology
Figure 1 shows the design of the hardware setup using SolidWorks software. It consists of three levels:
one layer for the reservoirs and another two layers for the rectangular PVCs for the vertical farming.
The bottom level consists of two reservoirs, one for the clean nutrient solution and the other reservoir
was for the used nutrient solution drained back from the rectangular PVC. It also consists of a small
water filter connected between two reservoirs to filter the used nutrient solution and flow back into the
reservoir with clean nutrient solution. Three sensors were placed in the reservoir include EC, pH and
temperature sensor to constantly measure the nutrient level, pH level and water temperature in the
reservoir. Hence, there will also be two small nutrient pumps to pump the concentrated A & B nutrient
into the reservoir for nutrition adjustment. On the second and third layer, four sensors were placed along
each rectangular PVC. Ultrasonic sensor was placed at the edge PVC pipe to detect the nutrient solution
level in the PVC pipe. The EC sensor, temperature sensor and pH sensor were located in the middle of
the PVC pipe to measure the EC, temperature and pH value.
3
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
Figure 2 shows the overall system setup for the monitoring process [6,7]. The project used Arduino
Mega due to more analog pin required for the sensory system. For data logging process, NodeMCU was
selected to send all the monitored data to Ubidots cloud. The project used MQTT protocol to
communicate between devices (M2M) and the data will be converted to JSON format so that the system
can make post request to the Ubidots cloud server with the NodeMCU. As mentioned above, four
sensors were used for the entire system except ultrasonic sensors were just to measure the nutrient
solution level in the rectangular PVC. To control the water flows in the PVC, an electrical motorized
valve was used.
3.3 System Flow Control
Figure 3 shows the overall monitoring process and control system. There are also three sub-processes
to check the nutrient conditions in the reservoir and rectangular PVCs. The system started off by
measuring the nutrient solution level in the rectangular PVCs. Then it will carry out other process when
the requirements were not met. From the flowchart above, the red in colour sub process will be triggered
if there is no enough nutrient solution in the top layer PVC. It will first check the nutrient condition in
the reservoir before pumping up into the top layer PVC. This is to ensure that the amount of nutrient
4
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
solution pumped in has enough amount of nutrient level in it. For second layer, it will set the top ball
valve to open so that the nutrient solution in top layers will flow down to the second layer. After the
water is being pumped up, it will re-measure again the amount of nutrient solution in the rectangular
PVC. The blue in colour sub-processes will measure the nutrient condition in the rectangular PVC and
ready to replace new nutrient solution if the nutrient condition is not in the optimum range.
Figure 4 shows the hardware implementation for the monitoring system. The blue in color reservoir was
used to store clean nutrient solution while the red in color reservoir stored the drained nutrient solution.
As shown in the figure above, the A&B solution is controlled by two small water pumps to control the
amount of nutrient in the reservoir. All the electrical components connection will be placed in a case
instead the floor to prevent in contact with water. Two motorized ball valves were connected between
the rectangular PVCs and the reservoir using 90° elbow, socket and short pipe.
To ensure that the DIY sensor developed has accurate measurement as the TDS meter. A comparison
had been made to compare the result:
The percentage error between the measured value from DIY EC sensor and TDS meter is calculated
to be 3.22% which is quite small in error percentage.
The entire process takes about 2 minutes to completely fill up both layers of rectangular PVCs. This is
due to the high-powered water pump used in the system reduce the time taken for the process. The
output power can be adjusted so that the flow rate will not be overly fast. The maximum flow rate that
5
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
the pump can reach is up to 1200L/hour. However, the power is adjusted to the minimum for testing the
flow rate due to safety consideration. The final calculated flow rate output from the water pump is
221.22L/hour which is about 20% of the maximum output power. The time taken for the water to
drained back from the two rectangular PVCs is much slower due to the gentle slope of the rectangle
PVC. The reason placing it this way is to allow the water to flow back to the reservoir with the force of
gravity. When the electrical motorized valve opened, the water will use the slope and the help of gravity
force to drain downwards.
Calculation for the flow rate of the submersible water pump:
Total volume required for both regular PVCs = 2[100cm(length)×10.16cm(width)× 3.53c(height)]
= 7374cm3/ 7.374 liter
Flow rate of the water pump = 7.374L/2 minutes
= 221.22L/hour
4.4 Electrical energy Consumption
The electronic components that consumed electrical energy include growing light, water pumps,
nutrient pumps, air pumps and electrical motorized ball valves. The calculated electrical consumption
is compared between the current implemented monitoring vertical farming system and NFT system.
The formula used to calculate electrical energy consumption is shown below:
Electrical consumption for NFT system (per day)
( ℎ ) = × (ℎ/)/ 1000(/) = 14 × (8ℎ/)/1000(/) = 0.112ℎ
( − 6612 ) = (18 × 20%) × 24/1000 = 0.0864ℎ
( − 6618 ) = (22 × 20%) × 24/1000 = 0.1056ℎ
(2 × ) = [(2.5) × 24/1000] × 2 = 0.12ℎ
( ) = (0) × 24/1000 = 0ℎ
Total Electrical consumption = 0.424kWh per day.
Electrical consumption for current monitoring system (per day)
( ℎ ) = 14 × (8ℎ/)/1000(/) = 0.112ℎ
( − 6612 ) = (18 × 20%) × 3.2/1000 = 0.01152ℎ
( − 6618 ) = (22 × 20%) × 3.2/1000 = 0.01408ℎ
(2 × ) = [(2.5) × 24/1000] × 2 = 0.12ℎ ( ) = (5) × 0.8/1000 =
0.004ℎ
Total Electrical consumption = 0.2616kWh per day
From the calculation above, it was concluded that the current monitoring system consumed less energy
compare to NFT system.
4.5 Plants growth from different stages
Throughout the project, there were two types of growing stages to grow Bok Choy plant. One of
them is growing the Bok Choy plant from seed and the other method is directly growing them from
stalk. The experiment was carried out on the current farming system and observed for 7 days:
6
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
7
2020 2nd International Conference on Science & Technology (2020 2nd ICoST) IOP Publishing
Journal of Physics: Conference Series 1844 (2021) 012024 doi:10.1088/1742-6596/1844/1/012024
6. References
[1] Kalantari F., Tahir O. M., Joni R. A., and Fatemi E. 2018, Opportunities and challenges in
sustainability of vertical farming: A review, J. Landsc. Ecol. Republic).
[2] Leblanc R., “What You Should Know About Vertical Farming,” thebalancesmallbusiness, 2019.
[Online]. Available: https://www.thebalancesmb.com/what-you- should-know-about-vertical-
farming-4144786. [Accessed: 26-May-2019].
[3] Benke K. and Tomkins B. 2017, “Future food-production systems: Vertical farming and controlled-
environment agriculture,” Sustain. Sci. Pract. Policy.
[4] Ashley, “Electrical Conductivity and hydroponic gardening,” FifthSeasonGardening, 2015.
[Online]. Available: https://fifthseasongardening.com/electrical- conductivity-and-hydroponic-
gardening. [Accessed: 21-May-2019].
[5] Bugbee B. 2019, “284 Towards Efficient Nutrient Management in Recirculating Hydroponic
Culture,” HortScience, vol. 34, no. 3, pp. 491C – 491.
[6] Then Y. L., You K. Y., and Dimon M. N. 2014, “Soil Moisture Dielectric Measurement Using
Microwave Sensor System”, 2014 International Symposium on Antennas and Propagation
Conference Proceedings, Kaohsiung, Taiwan, pp. 97-98.
[7] Tan W. Y, Then Y. L., Lew Y. L., and Tay F. S 2019, “ Newly Calibrated Analytical Models for
Soil Moisture Content and pH Value by Low-Cost YL-69 Hygrometer Sensor”, Measurement,
pp. 166-178.