🔒
International Scholarly Publisher
Serving Researchers Since 2012

Design and Implementation of an IoT-Based Dual-Zone Multi-Layer NFT Hydroponic System

DOI : 10.5281/zenodo.24674648
Download Full-Text PDF Cite this Publication

Text Only Version

Design and Implementation of an IoT-Based Dual-Zone Multi-Layer NFT Hydroponic System

Zobia Samin Khan (1), Saurabh Mehta (1), Ganesh Raghtate (1), Abdul Kadir Poonawala (2)

(1) Department of Electronics and Telecommunication Engineering, Vidyalankar Institute of Technology, Mumbai, India.

(2) Department of Mechanical Engineering, M. H. Saboo Siddik Polytechnic, Mumbai, India.

Corresponding author: Zobia Samin Khan

Abstract – Urban hydroponic farming conserves land and water but requires continuous supervision of nutrient concentration, acidity, canopy microclimate, and lighting. This paper presents the design, fabrication, and experimental validation of a low- cost, Internet of Things (IoT)-enabled, dual-zone, three-tier Nutrient Film Technique (NFT) hydroponic system (total prototype cost 27,835). One submersible pump and one shared nutrient reservoir supply six sloped PVC channels arranged across two vertical zones: Zone A is illuminated by specialized horticultural LED grow lights, whereas Zone B uses standard 6500 K white LED strips. Two dedicated ESP32 microcontroller nodes acquire air temperature, relative humidity, substrate moisture, Total Dissolved Solids (TDS), and shared main-tank pH, uploading two-hourly telemetry to ThingSpeak alongside live visual canopy inspection via two ESP32-CAM modules. Introducing a 12-hour seed pre-soaking protocol resolved early dry-sowing dormancy across a 1516 day nursery stage. Over a continuous 14-day cultivation and logging cycle with sweet basil and spinach (168 records per zone), shared reservoir pH remained within 5.956.23 (target 5.86.5), canopy dew-point margins exceeded 5.0 °C, and horticultural grow lights accelerated post-transfer maturation by 33% for basil (2 vs. 3 weeks) and 2550% for spinach (3 vs. 46 weeks) while driving a 1.50× higher daily nutrient assimilation rate (22.5 vs. 15.0 ppm/day).

Keywords – hydroponics, Internet of Things, ESP32, nutrient film technique, ThingSpeak, grow lights, precision agriculture

  1. INTRODUCTION

    Soilless farming is attractive for cities, where land is scarce and fresh produce travels far. In the nutrient film technique (NFT) a thin film of nutrient solution flows along sloped channels while the roots hang in the stream; this saves water and fertilizer and suits leafy crops such as lettuce, basil and spinach [1], [6], [7]. The price of this efficiency is tight control. pH, nutrient strength, temperature and light must stay in narrow windows, and a failed pump or a drifting pH can ruin a crop in days. Low- cost sensors and cloud logging make such control practical for small growers [1], [2], [14].

    Most published IoT hydroponic prototypes use a single growing layer and describe the electronics rather than the whole system [1][4], [7], [9]. This paper reports a complete build: a multi-tier NFT rack, a two-node ESP32 monitoring chain, a cloud dashboard and remote cameras, tested over a full growth cycle. The contributions are (i) a six-channel, two-zone NFT rack served by one pump and one reservoir, (ii) a documented sensor, firmware and cloud pipeline with its pin plan and equations, and (iii) a 14-day dataset with harvest times for basil and spinach under two lighting systems.

  2. LITERATURE REVIEW

    ESP32 microcontrollers are widely adopted in recent prototypes. Abu Sneineh and Shabaneh [1] combined TDS, pH, water-level, and temperature sensors with dosing pumps and ThingSpeak monitoring, while Ogbolumani and Mabaso [2] transmitted microclimate and pH telemetry to AWS via Raspberry Pi. Krishnakumar and V.

    M. K. [3] showed that poorly programmed automation can waste nutrients, whereas Swaraj and Sowmyashree [4] and Patil et al. [5] demonstrated low-cost multi-tier vertical sensor logging. Kulkarni et al. [6] used ESP32 nodes in a

    vertical NFT setup and reported optimal spinach quality at pH 5.56.5 and TDS 10001200 ppm. Raja Aris [7] built a 24-plant vertical NFT controller at ~4.1 L/min, and Alimussadad et al. [8] and Chowdhury et al. [9] integrated intelligent nutrient analytics to prevent root-zone lockouts. Namgyel et al. [10] evaluated supplementary LED lighting for lettuce, AlZubi and Galyna [11] surveyed AI/IoT precision agriculture, and Pennisi et al. [12] and Kozai et al. [13] quantified redblue PAR spectra effects on indoor crop cycles. Cloud dashboard usability and closed-loop recirculation were further validated by Austria et al. [14], Ruengittinun et al. [15], and Lakhiar et al. [16]. Single- layer channels, lack of side-by-side fixture comparisons over a shared nutrient circuit, and unquantified nursery seed protocols remain key gaps addressed by this work.

  3. SYSTEM DESIGN

    1. Structure and hydraulics

      The rack is built from slotted angle iron and carries two zones of three NFT tiers. PVC channels with net-pot openings are set at a gentle slope and the plants sit in rockwool cubes in net pots. One submersible pump lifts nutrient solution from a single reservoir to the high end of every channel, and gravity returns it through the low end, so the solution chemistry is common to all six channels (Fig. 1 and Fig. 2).

      Sensors per zone

      DHT22, soil moisture, TDS; shared pH probe on Zone B

      Cloud

      ThingSpeak, 2 channels (4 and

      5 fields)

      Targets

      pH 5.86.5; TDS 10001200

      ppm [3]

      Cost

      27,835 (full bill of materials)

      Fig. 1. Architecture of the system: one reservoir and pump feed two three-tier NFT zones; each zone has an ESP32 node, the Zone B node also reads the reservoir pH probe, and data go over Wi-Fi to ThingSpeak.

      Fig. 2. The assembled dual-zone, multi-layer NFT rack.

    2. Lighting zones

      Zone A uses horticultural grow lights and Zone B standard LED strips, both switched by hand. The photon flux at the canopy and the power of each fixture were not measured, so the zones are compared by plant response.

    3. Sensing nodes

      Each zone has one ESP32 DevKit V1 powered from a 5 V supply. It reads a DHT22 (GPIO 4), an analog soil- moisture sensor (GPIO 32) and an analog TDS module (GPIO 34). The moisture probe is powered from GPIO 25, which is high only for about 10 ms per reading, to limit electrode corrosion. A single analog pH probe in the shared reservoir is wired to the Zone B board (GPIO 35), so Zone A uploads four fields and Zone B five. The analog sensors use ADC1 because ADC2 conflicts with the Wi-Fi driver. An ESP32-CAM per zone serves a JPEG snapshot and an MJPEG stream over HTTP. Table 1 summarizes the system.

  4. FIRMWARE AND DATA PIPELINE

    Algorithm 1 runs on each zone board. After connecting to Wi-Fi it loops: pulse the moisture supply and read the probe, read the DHT22 (skip the cycle if the value is not a number), take 30 TDS samples and keep the median, average 10 pH samples on the Zone B board, write the fields to ThingSpeak and wait 15 s, the update limit of a free account.

    Algorithm 1: Unified Dual-Zone Telemetry and Visual Monitoring

    Initialize serial, 12-bit ADC, GPIO 25 (LOW), DHT22, ThingSpeak

    Connect to Wi-Fi (retry every 5000 ms) while true do

    reconnect if Wi-Fi is lost

    GPIO 25 HIGH; wait 10 ms; m ADC(GPIO 32); GPIO 25 LOW

    (T, RH) DHT22; skip cycle if NaN v median of 30 samples on GPIO 34 TDS from v with (1) and (2)

    if Zone B: pH mean o 10 samples on GPIO 35 with (3)

    write (T, RH, m, TDS[, pH]) to ThingSpeak; wait 2 hrs

    With V = ADC × 3.3/4095, the TDS value is obtained from

    25)] (1)Vc = V / [1 + 0.02 × (T 25)]

    (1)

    255.86TDS = (133.42 Vc³ 255.86 Vc² + 857.39 Vc) ×

    0.5 (2)

    where T is fixed at 25 °C in the firmware, so the compensation is inactive. The pH is obtained from

    pH = 7 + (2.5 V_pH = ADC × 3.3 / 4095; pH = 7 + (2.5 V_pH) / 0.18 (3)

    These constants are fixed in the program and the probes were not calibrated against standard buffers, so TDS and pH values are indicative. Each ESP32-CAM starts an HTTP server on port 80: /stream returns a continuous MJPEG stream, /capture one JPEG image and any other path HTTP 404.

    Table 1. Main features of the system

  5. EXPERIMENTAL PROCEDURE

    Item

    Specification

    Structure

    2 zones × 3 NFT tiers = 6 channels; one pump; one reservoir

    Light sources

    Zone A grow lights; Zone B LED strips (manual)

    Controllers

    2 × ESP32 DevKit V1; 2 ×

    ESP32-CAM

    Sweet basil and spinach were grown from seed. Dry seeds sown directly germinated poorly, so seeds were soaked for 12 h, sown in rockwool and kept in a shaded nursery. Basil germinated in 35 days and spinach in 57 days. After 1516 days the seedlings were moved into the channels of both zones. The solution was kept at pH 5.8

    6.5 and in the TDS band for leafy greens [6]. Records from

    18 April to 01 May 2026 (168 per zone, two-hourly) were exported from the two ThingSpeak channels. pH was corrected by hand with a pH-down reagent and the reservoir was topped up by hand with a two-part nutrient. Harvest readiness was judged on the plants, and one cycle was run per crop.

  6. RESULTS AND DISCUSSION

    1. Crop response

      Table 2 summarizes the germination, nursery, and maturation timelines for both crops alongside conventional soil farming benchmarks. Following the 12-hour pre-soak, basil germinated in 35 days and spinach in 57 days, followed by 1516 days in the shaded nursery tray before NFT transfer. Under horticultural grow lights (Zone A), basil matured in approximately 2 weeks (14 days post- transfer) versus 3 weeks (21 days) under standard LED strips (Zone B)a 33% speedup (total seed-to-harvest 29 30 vs. 3637 days, and 3050% shorter than the 4256 day conventional soil cycle). Spinach matured in approximately 3 weeks (21 days) in Zone A versus 46 weeks (2842 days) in Zone B (2550% faster post- transfer; total 3637 vs. 4358 days). Fig. 5 and Fig. 6 illustrate these comparative harvest durations, mineral uptake rates, and soil-farming benchmarks.

      Table 2. Germination and maturation results

      Parameter

      Basil

      Spinach

      Germination after 12-h soak

      35 days

      57 days

      Nursery before transfer

      1516

      days

      1516

      days

      Harvest size, Zone A

      2 weeks

      3 weeks

      Harvest size, Zone B

      3 weeks

      46 weeks

    2. Microclimate

      Table 3 and Fig. 3 show the logged air conditions. Zone A ran 1.1 °C warmer (mean 28.2 °C against 27.1 °C) and 3.3% drier (mean 65.5% against 68.8% RH) than Zone B, consistent with heat from the grow-light fixtures. The mean dew point was 21.1 °C (Zone A) and 20.9 °C (Zone B), well below air temperature, so canopy condensation was not expected.

      Table 3. Range of the 14-day records

      Parameter

      Zone A min/mean/max

      Zone B min/mean/max

      Temperature (°C)

      26.5 / 28.2 / 29.9

      25.3 / 27.1 / 28.6

      Humidity (%)

      59.1 / 65.5 / 71.5

      62.8 / 68.8 / 74.0

      Moisture (ADC)

      3266 / 3419 /

      3556

      3357 / 3482 /

      3650

      TDS (ppm)

      992.1 / 1079.8 /

      1165.0

      1041.9 / 1101.1 /

      1155.0

      Reservoir pH

      5.95 / 6.07 / 6.23

      Fig. 3. Air temperature and relative humidity, 18 April01 May 2026.

    3. Nutrient and pH

      Initial TDS was set near 1150 ppm in both zones (target 10001200 ppm [6]). Linear least-squares regression between nutrient top-ups (R² = 0.9999) confirmed steady mineral depletion rates of 22.5 ppm/day in Zone A (22.32 and 22.80 ppm/day before and after the 24 April top-up from 1011 to 1165 ppm) versus 15.0 ppm/day in Zone B (14.98 and 14.95 ppm/day before and after the 25 April top-up from 1042 to 1155 ppm)an exact 1.50× higher mineral assimilation rate under grow lights matching the 1.50× faster basil growth rate. Shared reservoir pH drifted upward at +0.050 pH/day (R² = 0.998) and was corrected manually with pH DOWN on 23 April (6.23 5.95) and

      28 April (6.19 5.95), staying inside 5.956.23

      throughout (Fig. 4).

      Fig. 4. TDS with the reference band and top-ups (top) and reservoir pH with the target window (bottom).

      Fig. 5. Post-transfer harvest duration (left) and daily mineral assimilation rate (right) for Zone A vs. Zone B.

      A low-cost (27,835), dual-zone, three-tier NFT hydroponic system with dual ESP32 telemetry nodes, ThingSpeak cloud logging, and ESP32-CAM visual monitoring was fabricated and validated over a full growth cycle of sweet basil and spinach. Introducing a 12-hour seed pre-soak resolved early germination dormancy, while shared-reservoir pH remained within 5.956.23 (target 5.86.5) and TDS within 9921165 ppm over 14 continuous days. Horticultural grow lights accelerated post-transfer maturation by 33% for basil (2 vs. 3 weeks) and 2550% for spinach (3 vs. 46 weeks) alongside a 1.50× higher nutrient assimilation rate (22.5 vs. 15.0 ppm/day). Future work will incorporate relay-based load scheduling, closed-loop peristaltic pH/nutrient dosing, two-point sensor calibration, quantum PAR metering, and replicated multi-cycle biomass testing.

    4. Failure observation and limits

      In week three the roots in the last pod of one channel browned where water pooled at the low-flow end; pH and TDS were common to all channels, so slope and drainage are the likely cause. Limits of the study: lights and pump were switched by hand, pH and nutrient corrections were manual, photon flux and fixture power were not measured, probes were not calibrated, moisture is a raw ADC count, and only one cycle per crop was run.

  7. CONCLUSION

A low-cost dual-zone, three-tier NFT system with an ESP32 and ThingSpeak monitoring chain was built and run for one cycle of basil and spinach. Reservoir pH stayed in the 5.86.5 window and TDS between 992 and 1165 ppm over 14 days, and the crops matured one to three weeks sooner under grow lights than under LED strips. Future work: relay switching of pumps and lights, automatic dosing, probe calibration, photon-flux measurement and repeated cycles.

ACKNOWLEDGMENT

The authors thank Dr. A. K. Kureshi, Principal, M. H. Saboo Siddik Polytechnic, Mumbai, for permitting the system to be built at the polytechnic and for providing the facilities. A preliminary version of this work was presented at ICRACEM-2025, Vidyalankar Institute of Technology, Mumbai, 1213 December 2025.

REFERENCES

  1. A. Abu Sneineh and A.A. A. Shabaneh, Design of a smart hydroponics monitoring system using an ESP32 microcontroller and the Internet of Things, MethodsX, vol. 11, Art. no. 102401, 2023, doi: 10.1016/j.mex.2023.102401.

  2. O. A. Ogbolumani and B. Mabaso, An IoT-based hydroponic monitoring and control system for sustainable food production, J. Digit. Food, Energy Water Syst., vol. 4, no. 2, pp. 106140, 2023, doi: 10.36615/digital_food_energy_water_systems.v4i2.2873.

  3. A. Krishnakumar and V. M. K., Automated IoT-based monitoring and control for hydroponic system, Int. J. Intell. Syst. Appl. Eng., vol. 12, no. 4, pp. 112120, 2024. [Online]. Available: https://www.ijisae.org/index.php/IJISAE/article/view/5506

  4. S. C. M. Swaraj and K. M. Sowmyashree, IoT based smart agriculture monitoring and irrigation system, Int. J. Eng. Res. Technol. (IJERT), vol. 8, no. 14, pp. 15, 2020.

  5. N. Patil, M. Pawar, and U. Patil, IoT based verticrop monitoring and controlling, Int. J. Eng. Res. Technol. (IJERT), vol. 9, no. 3,

    pp. 4550, 2021.

  6. P. V. Kulkarni, V. Gohokar, and K. Kulkarni, Smart hydroponic systems: Optimizing nutrient levels with IoT connectivity, J. Electr. Syst., vol. 20, no. 2s, pp. 11591168, 2024, doi: 10.52783/jes.1761.

  7. R. S. N. A. binti Raja Aris, Front-end development of nutrient film technique for hydroponic plant with IoT monitoring system, Int. J. Adv. Trends Comput. Sci. Eng., vol. 9, no. 1.3, pp. 914, 2020, doi: 10.30534/ijatcse/2020/0291.32020.

  8. M. Alimussadad, D. Lestari, and W. M. Utomo, Smart hydroponic nutrient monitoring and control system using fuzzy logic and IoT,

    J. ELTIKOM, vol. 9, no. 2, pp. 115129, 2023, doi:

    10.31961/eltikom.v9i2.1494.

  9. M. E. H. Chowdhury et al., Design, construction and testing of IoT based automated indoor vertical hydroponics farming test-bed in Qatar, Sensors, vol. 20, no. 19, Art. no. 5637, 2020, doi: 10.3390/s20195637.

  10. T. Namgyel et al., IoT based hydroponic system with supplementary LED light for smart home farming of lettuce, in Proc. 15th Int. Conf. Electr. Eng./Electron., Comput., Telecommun. Inf. Technol. (ECTI-CON), 2018, pp. 221224, doi: 10.1109/ECTICon.2018.8619983.

  11. A. AlZubi and K. Galyna, Artificial intelligence and Internet of Things for sustainable farming and smart agriculture, IEEE Access, vol. 11, pp. 7868678692, 2023, doi: 10.1109/ACCESS.2023.3298215.

  12. G. Pennisi et al., Resource use efficiency of indoor lettuce (Lactuca sativa L.) cultivated under red:blue LED lighting as compared to HPS and fluorescent lamps, Sci. Rep., vol. 9, Art. no. 14127, 2019, doi: 10.1038/s41598-019-50783-z.

  13. T. Kozai, G. Niu, and M. Takagaki, Eds., Plant Factory: An Indoor Vertical Farming System for Efficient Quality Food Production, 2nd ed. Academic Press / Elsevier, 2019, doi: 10.1016/C2018-0-00969- X.

  14. A. C. H. Austria, J. S. Fabros, K. R. Sumilang, J. Bernardino, and

    A. C. Doctor, Development of IoT smart greenhouse system for hydroponic gardens, Int. J. Comput. Sci. Res., vol. 7, pp. 2111 2136, 2023, arXiv:2305.01189.

  15. S. Ruengittinun, S. Phongsamsuan, and P. Sureeratanakorn, Applied Internet of Things for smart hydroponic farming ecosystem (HFE), in Proc. 10th Int. Conf. Ubi-media Comput. Workshops (Ubi-Media), 2017, pp. 14, doi: 10.1109/UMEDIA.2017.8074148.

  16. I. A. Lakhiar, J. Gao, T. N. Syed, F. A. Chandio, and N. A. Buttar, Modern plant cultivation technologies in agriculture under controlled environment: A review on aeroponics, J. Plant Interact., vol. 13, no. 1, pp. 338352, 2018, doi: 10.1080/17429145.2018.1472308.