Scinovex
article Open Access

Automated irrigation system for rooftop gardening using IoT

Abstract

Urbanization has led to a significant reduction in cultivable land, pushing cities to explore sustainable alternatives such as rooftop gardening to ensure local food production and green coverage. While rooftop gardening offers numerous environmental and social benefits, maintaining these gardens manually introduces several operational challenges. These include inconsistent watering schedules, overuse of water resources, inefficient nutrient distribution, and the increased time and labor required for maintenance. Such issues not only compromise plant health and yield but also reduce the overall efficiency and sustainability of urban gardening systems. To address these problems, this project presents a fully integrated Internet of Things-based automated irrigation system specifically designed for rooftop gardening applications. The proposed system employs a soil moisture sensor to continuously monitor the hydration status of the soil and electrical conductivity and total dissolved solids sensors to assess the concentration of essential nutrients in the irrigation water. A microcontroller serves as the system’s central processing unit, analyzing sensor data in real time to determine whether irrigation or nutrient supplementation is required. Based on the sensor feedback, the microcontroller activates a water pump to deliver water and nutrients only, when necessary, thereby reducing waste and promoting optimal plant growth. The system is powered entirely by a solar panel, ensuring energy efficiency and eliminating dependency on the conventional power grid. It incorporates Bluetooth connectivity, allowing real-time monitoring and control via a user-friendly mobile application. Users can view moisture and nutrient levels, receive automated alerts, and even schedule irrigation cycles based on plant-specific requirements. This level of automation and remote control significantly reduces manual effort while enhancing precision in garden management. The design is scalable and cost-effective, making it applicable to a wide range of setups including rooftop gardens, vertical farms, and greenhouse operations. Initial testing has validated its functionality, reliability, and ease of use. The system has also been presented at an international conference, garnering interest for its innovative approach, and is currently undergoing the publication process. Overall, this project offers a practical and sustainable solution to improve food production in urban environments through smart gardening technologies.

Full Text

Tables and figures are in the full-text PDF.

Introduction

The rapid pace of urbanization has significantly reduced the availability of arable land, prompting the need for alternative methods of sustainable food production. One such method, rooftop gardening, utilizes otherwise unused urban spaces to grow food locally, thereby enhancing food security and promoting environmental sustainability. In addition to providing access to fresh produce, rooftop gardens contribute positively to air quality, help mitigate urban heat island effects, and improve mental well-being among city dwellers. However, despite these benefits, maintaining rooftop gardens poses considerable challenges, particularly with respect to irrigation and nutrient management. Traditional irrigation methods in urban gardening are often manual, time-consuming, and inconsistent, resulting in over-watering or under-watering due to the absence of real-time feedback. Similarly, the manual application of nutrients without accurate measurement frequently leads to suboptimal plant growth, fertilizer wastage, and potential environmental harm. These limitations underscore the need for an automated, intelligent system capable of optimizing resource use while minimizing www.extensionjournal.com manual intervention. In recent years, researchers have explored the application of smart technologies and Internet of Things (IoT) systems in agriculture to address such challenges. Automated irrigation systems equipped with sensors and controllers have shown promise in improving water efficiency and reducing labor in traditional farming. However, their application in the context of urban rooftop gardening remains limited, particularly in designs that integrate both water and nutrient management, renewable energy, and real-time user control. To fill this gap, the present project proposes a smart, IoTbased automated irrigation system specifically designed for rooftop gardening applications. The system incorporates soil moisture sensors to monitor hydration levels and TDS/EC sensors to assess nutrient concentration in the water. A microcontroller processes the sensor data and controls a water pump that activates only when necessary, ensuring precise water and nutrient delivery. The system is powered by solar energy, promoting sustainability and energy independence. Bluetooth connectivity and a mobile application enable remote monitoring, control, and notifications, enhancing user convenience. This integrated solution aims to reduce water and energy consumption, minimize labor, and support healthier plant growth through data-driven management. By combining smart sensing, automation, and renewable energy, the system offers a scalable, cost-effective approach to modernizing urban rooftop gardening. It contributes to ongoing efforts in smart agriculture and presents a practical model for sustainable urban food production.

Materials and Methods

The following hardware and components were used in the development of the IoT-based automated irrigation system: Enables wireless communication between the system and mobile app.

Rain Sensor

Detects rainfall and prevents unnecessary irrigation.

Solar Panel

Supplies power to the system, reducing dependency on external electricity. Mobile Application Interfaces with the system to display data and provide remote control options.

Methodology 1. Step 1: Sensor Calibration and Placement

• Soil Moisture Sensor: The soil moisture sensor is carefully inserted into the soil near the plant roots to ensure accurate measurement of moisture levels. This placement allows for precise data on soil hydration for optimal irrigation. • TDS and EC Sensors: Total Dissolved Solids (TDS)

and Electrical Conductivity (EC) sensors are submerged in the water reservoir to continuously monitor the nutrient content of the irrigation water. These sensors provide real-time data on the quality of the water and its suitability for plant growth. • Rain Sensor: A rain sensor is placed in an open location, away from obstructions, to detect rainfall and ensure the system does not irrigate during precipitation, thereby conserving water resources.

Step 2: System Integration

• Microcontroller Setup: All sensors are connected to an Arduino or ESP32 microcontroller, which serves as the central unit for data processing and control. • Bluetooth Module: The Bluetooth module is paired with a mobile application, allowing users to communicate with and control the system remotely. • Water Pump Control: The water pump is connected to the microcontroller via a relay module, enabling controlled operation of the pump based on sensor inputs and programmed thresholds.

Step 3: Programming and Automation Logic

• The microcontroller is programmed using the Arduino IDE. Threshold Values: Specific threshold values are defined for system automation: • When soil moisture falls below 30%, the water pump is activated to irrigate the garden and when TDS levels drop below 300 ppm or EC levels fall below 700 µS/cm, an alert is triggered for either manual or automatic nutrient addition to the irrigation water. • Rain Sensor Logic: If rainfall is detected by the rain sensor, the irrigation system is skipped to avoid unnecessary water usage.

Step 4: Power Supply Setup

A solar panel with a charge controller is installed to power the system sustainably, using solar energy. A battery backup is integrated to store solar energy and ensure uninterrupted operation of the system during periods of low sunlight.

Step 5: Data Communication and Control

The sensors transmit real-time data on soil moisture, TDS, and EC levels to the mobile app via Bluetooth. Users have the option to view the current sensor readings, adjust irrigation schedules, and override the automatic system settings if needed.

Step 6: Testing and Optimization

The system is initially tested on a rooftop garden setup, where it undergoes multiple iterations to optimize sensor calibration, pump timing, and automation logic. Performance Evaluation: Data is logged to assess the effectiveness of the system, enabling performance evaluation and potential adjustments to improve system efficiency.

Flow

Results and Discussion

The IoT-based automated irrigation system was successfully deployed and tested on a rooftop garden. During the testing phase, the system demonstrated effective functionality in all key areas, including soil moisture monitoring, nutrient management, rain detection, and energy efficiency. The soil moisture sensor consistently measured moisture levels in the soil, and irrigation was triggered automatically whenever the moisture content fell below the preset threshold of 30%. This ensured that the plants received the necessary amount of water without over-watering, which is a common problem in manual irrigation systems. The system proved effective in preventing water wastage while maintaining optimal plant hydration. The Total Dissolved Solids (TDS) and Electrical Conductivity (EC) sensors, submerged in the water reservoir, successfully monitored the nutrient levels of the irrigation water. When the TDS levels dropped below 300 ppm or the EC levels fell below 700 µS/cm, the system triggered alerts, indicating that nutrients needed to be added to the water. These alerts were configured to prompt either manual or automatic nutrient addition, helping maintain the ideal nutrient concentration for plant growth. The rain sensor functioned as intended, detecting rainfall and preventing unnecessary irrigation during precipitation. This feature proved valuable in water conservation, ensuring that the system did not activate irrigation when natural rainfall was sufficient, thus reducing water usage. The solar panel and battery backup powered the entire system with high efficiency. Even on cloudy days, the solar panel provided sufficient energy to operate the sensors, water pump, and Bluetooth module, demonstrating the system's independence from the electrical grid and its sustainability. Finally, the Bluetooth connectivity between the system and the mobile application allowed for seamless real-time monitoring and control. Users were able to view the soil www.extensionjournal.com moisture, TDS, and EC readings and adjust irrigation schedules or override the system as necessary, offering a high level of convenience and user control. This figure (2) shows the Smart Irrigation System detecting low soil moisture at 20%, triggering the automated irrigation system. The TDS level is 464 ppm and marked as Optimal, while the EC value is 1.08 mS/cm, which falls within the Safe range. The system recognizes that moisture is below the 30% threshold and automatically switches the water pump ON. The moisture trend graph indicates a downward trend, confirming the need for irrigation. In figure (4) the Smart Irrigation System records a soil moisture level of 42%, which is above the irrigation threshold. The water pump remains OFF in standby mode.

However, the TDS level is 570 ppm and flagged as High Dilute Solution, suggesting slightly elevated dissolved solids. The EC remains Safe at 1.35 mS/cm, and the trend graph shows stable moisture conditions post-irrigation. Crop-specific mode is enabled for tomatoes with stable conditions and optimal system performance.

In the figure (5), the dashboard highlights a crop-specific mode, with Tomatoes / Fruiting Plants selected. The soil moisture is at 37%, above the threshold, keeping the water pump OFF. The TDS level of 1422 ppm and EC value of 3.30 mS/cm fall within the Optimal and Safe ranges for tomato crops. The system confirms stability, and all parameters indicate that the system is running under optimal agricultural conditions. This figure (6), provides a reference chart listing the ideal EC (µS/cm) and TDS (ppm) ranges for common crop categories including leafy greens, tomatoes, herbs, and strawberries. This chart serves as a baseline for comparison and system calibration to ensure appropriate water and nutrient levels for different plant types.

Conclusion

This project successfully demonstrates the development and implementation of an IoT-based automated irrigation system tailored for rooftop gardening. By integrating soil moisture sensors, TDS/EC sensors, and a rain detector with a microcontroller and solar power system, the design offers an efficient, sustainable, and smart solution for urban agriculture. The system not only optimizes water usage and ensures appropriate nutrient delivery but also reduces manual labor and increases crop productivity. Its Bluetoothenabled mobile enhances user accessibility and control, making it suitable for individuals with limited time or technical expertise. The use of renewable energy further reinforces its environmental benefits and cost-effectiveness. Overall, this scalable and adaptable solution has the potential to promote self-sufficient food production in urban spaces, reduce environmental impact, and contribute meaningfully to the future of sustainable agriculture. Further improvements could include Wi-Fi integration, cloud data logging, and automated nutrient dosing to enhance its functionality and applicability in diverse urban farming scenarios.

References

  1. Jain A, et al. IoT based smart irrigation system. Int J Sci Res Comput Sci Eng Inf Technol. 2018;3(2):1-5.
  2. Bhambare DV, et al. Automated irrigation system using solar power. Int J Eng Innov Technol. 2013;3(12):45-9.
  3. Nikhil R, et al. Soil moisture sensor based automated irrigation system. Int J Comput Appl. 2015;120(10):304.
  4. Patel K, Thakkar D. Precision agriculture using IoT and wireless sensor network. Int J Eng Res Gen Sci. 2016;4(2):112-6.
  5. Priya P, et al. Design and implementation of automatic irrigation system using Arduino UNO. Int J Comput Appl. 2017;162(7):25-9.
  6. Ruiz-Garcia L, et al. Wireless sensor networks in precision agriculture. Comput Electron Agric. 2004;50(1):1-17.
  7. Patil KA, Patil NR. Smart irrigation system using IoT. Int J Adv Res Electr Electron Instrum Eng. 2015;4(5):2267-72.
  8. Sharma R, et al. Automated irrigation using solar energy and moisture sensors. Int J Sci Eng Res. 2016;7(6):456-60.
  9. Mahajan P, et al. Application of TDS and EC sensors in hydroponic systems. Agric Agric Sci Procedia. 2015;4:453-8.
  10. Khan M, et al. Remote monitoring of soil parameters using IoT. Int J Sci Eng Technol Res. 2016;5(3):733-6.
  11. Kumar A, Yadav R. Use of solar-powered irrigation for sustainable agriculture. Renew Sustain Energy Rev. 2016;54:1036-47.
  12. Raut N, et al. Development of an Android application for controlling smart irrigation. Int J Comput Sci Mob Comput. 2015;4(6):145-50.
  13. Roy S, Das M. IoT-based control system for greenhouse automation. J Agric Eng Biotechnol. 2017;5(2):89-94.
  14. Zhang Y, et al. Data-driven irrigation scheduling using IoT. Sens Actuators A Phys. 2020;303:111828.
  15. Shinde P, et al. A review on nutrient monitoring in hydroponics using IoT. Int J Agric Innov Res. 2020;8(4):123-7.
  16. Kumar P, et al. Solar-powered drip irrigation system. Int J Eng Res Technol (IJERT). 2017;6(3):510-4.
  17. Mehta A, et al. Smart urban farming using embedded systems and IoT. Int J Adv Res Electr Electron Instrum Eng (IJAREEIE). 2019;8(1):36-41.
  18. Ravindra B, et al. Design of an IoT-enabled automated irrigation system with cloud computing. Int J Eng Technol. 2018;7(3):220-4.
  19. Rajesh V, et al. Development of Bluetooth-controlled irrigation system. Int J Innov Eng Technol. 2018;9(2):65-9.
  20. Yadav P, et al. Smart irrigation monitoring and controlling system using IoT. Int J Adv Res Comput Sci. 2017;8(5):403-7.
Smart Agriculture and AIInternet of ThingsIrrigation
Citations
0
FWCI
0.00
field-weighted impact
References
0
Percentile
8%
vs. same field & year
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.