Submitted:
23 May 2024
Posted:
24 May 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
1.1. Overview
1.2. Problem Statement
1.3. Objectives
- To analyze the issue regarding the irrigation system.
- To design a prototype system that detects the level of moisture.
- To provide real-time feedback on soil moisture status and irrigation activity through a user-friendly interface.
2. Literature Review
3. Methodology

| Hardware requirements | Software requirements |
|---|---|
| Arduino UNO | Arduino IDE |
| 5V motor | |
| 5V relay | |
| 9V Battery | |
| Soil moisture sensor | |
| Jumper wire | |
| LCD |
3.1. Hardware Development
| Arduino Pin | Soil moisture sensor pins |
|---|---|
| A0 | A0 |
| GND | GND |
| 3.3V | VCC |
| Arduino pin | Relay pin |
|---|---|
| 5V | VCC |
| GND | GND |
| 8 | Signal |
| Arduino pin | LCD pin |
|---|---|
| SCL | SCL |
| SDA | SDA |
| 5V | VCC |
| GND | GND |
3.1.1. Hardware
Arduino UNO

Soil Moisture Sensor

35. V Relay

9. V Water Pump

Liquid Crystal Display

Jumper Wire

3.2. Software Development
3.3. Block Diagram

3.4. Flow Chart

3.5. Code Explanation
- "#include<Wire.h>" and "#include <LiquidCrystal_I2C.h>" are library includes that provide functionality for communicating with the I2C bus and a liquid crystal display (LCD) via I2C.
- "LiquidCrystal_I2C lcd(0x27, 16, 2);" creates an instance of the "LiquidCrystal_I2C" class, which is used to control the LCD. The parameters passed to the constructor specify the I2C address of the LCD, the number of columns in the display, and the number of rows.
- "Serial.begin(9600);" initializes the serial communication with a baud rate of 9600.
- "lcd.init();" initializes the LCD.
- "lcd.backlight();" turns on the backlight of the LCD.
- "lcd.clear();" clears the display of the LCD.
- "pinMode(8, OUTPUT);" sets digital pin 8 as an output pin.
- "digitalWrite(8, HIGH);" sets the digital pin 8 to high
- "delay(1000);" delays the program execution by 1000 milliseconds
- "lcd.setCursor(0, 0);" sets the cursor position on the first line and first column of the LCD
- "lcd.print("IRRIGATION");" prints the word IRRIGATION on the LCD
- "lcd.setCursor(0, 1);" sets the cursor position on the second line and first column of the LCD
- "lcd.print("SYSTEM IS ON ");" prints the text "SYSTEM IS ON " on the second line of the LCD
- "lcd.clear();" clears the display of the LCD
- int value = analogRead(A0); reads the analog value from the A0 pin of the microcontroller
- "Serial.println(value);" sends the value read from the A0 pin to the serial monitor
- "if (value > 750) {...} else {...}" checks if the value read from the A0 pin is greater than 750 and if it is, it sets digital pin 8 to high and prints "MOTOR IS ON" on the LCD and if not, it sets digital pin 8 to low and prints "MOTOR IS OFF" on the LCD
- "if (value < 300) {...} else if (value > 301 && value <749) {...} else if (value > 750) {...}" checks if the value read from the A0 pin is less than 300 and if it is, it prints "MOISTURE : HIGH" on the second line of the LCD, if the value is between 301 and 749 it prints "MOISTURE : HUMID" on the second line of the LCD, if the value is greater than 750 it prints "MOISTURE : LOW" on the second line of the LCD.
4. Result and Discussion
4.1. Analysis of the Result
| Sensor Value | Moisture Status | Motor Status |
|---|---|---|
| >300 | High Moisture | Motor is off |
| 301-749 | Humid | Motor is off |
| <750 | Low Moisture | Motor is on |
- a.
- Sensors are mainly mapped within 0 to 1023 values.
- b.
- If the sensor value is less than 300 High Moisture (Table 4.1 Result from output). (Sensor must be placed inside the soil)
- c.
- If the sensor value is 301 to 749 then the soil is humid (Table 4.1 Result from output). (Sensor must be placed inside the soil)
- d.
- If the soil moisture sensor value is greater than 750(Table 4.1 Result from output), this indicates that the soil is relatively dry and in need of water. (Sensor must be placed inside the soil)
- e.
- Place the sensor in the opposite direction of water flow.





5. Conclusions
5.1. Overview
5.2. Future Work
5.3. Contribution to Social Business
References
- Anwesa Chaudhuri, A. C., & Sanjib Ray, S. R. (2015). Antiproliferative activity of phytochemicals present in aerial parts aqueous extract of Ampelocissus latifolia (Roxb.) Planch. on apical meristem cells.
- Deweshvree Rane, M., Indurkar, P. R., & Khatri, M. (2015). REVIEW PAPER BASED ON AUTOMATIC IRRIGATION SYSTEM BASED ON RF MODULE. International Journal of Advanced Information and Communication Technology, 1(9).
- Đuzić, N., & Đumić, D. (2017). Automatic plant watering system via soil moisture sensing by means of suitable electronics and its applications for anthropological and medical purposes. Collegium Antropologicum, 41(2).
- Gouda, W., Almurafeh, M., Humayun, M., & Jhanjhi, N. Z. (2022, February). Detection of COVID-19 based on chest X-rays using deep learning. In Healthcare (Vol. 10, No. 2, p. 343). MDPI. [CrossRef]
- Gutierrez, J., Villa-Medina, J. F., Nieto-Garibay, A., & Porta-Gandara, M. A. (2014). Automated irrigation system using a wireless sensor network and GPRS module. IEEE Transactions on Instrumentation and Measurement, 63(1). [CrossRef]
- Hussain, K., Rahmatyar, A. R., Riskhan, B., Sheikh, M. A. U., & Sindiramutty, S. R. (2024). Threats and Vulnerabilities of Wireless Networks in the Internet of Things (IoT). 2024 IEEE 1st Karachi Section Humanitarian Technology Conference (KHI-HTC), 1–8. [CrossRef]
- Humayun, M., Ashfaq, F., Jhanjhi, N. Z., & Alsadun, M. K. (2022). Traffic management: Multi-scale vehicle detection in varying weather conditions using yolov4 and spatial pyramid pooling network. Electronics, 11(17), 2748.
- Jhanjhi, N. Z., Brohi, S. N., Malik, N. A., & Humayun, M. (2020, October). Proposing a hybrid rpl protocol for rank and wormhole attack mitigation using machine learning. In 2020 2nd International Conference on Computer and Information Sciences (ICCIS) (pp. 1-6). IEEE. [CrossRef]
- Lim, M., Abdullah, A., Jhanjhi, N. Z., Khan, M. K., & Supramaniam, M. (2019). Link prediction in time-evolving criminal network with deep reinforcement learning technique. IEEE Access, 7, 184797-184807.
- Mallick, C., Bhoi, S. K., Singh, T., Swain, P., Ruskhan, B., Hussain, K., & Sahoo, K. S. (2023). Transportation Problem Solver for Drug Delivery in Pharmaceutical Companies using Steppingstone Method. International Journal of Intelligent Systems and Applications in Engineering, 11(5s).
- Ndashimye, E., Sarkar, N. I., & Ray, S. K. (2021). A Multi-criteria based handover algorithm for vehicle-to-infrastructure communications. Computer Networks, 185, 107652. [CrossRef]
- Riskhan, B., Safuan, H. A. J., Hussain, K., Elnour, A. A. H., Abdelmaboud, A., Khan, F., & Kundi, M. (2023). An Adaptive Distributed Denial of Service Attack Prevention Technique in a Distributed Environment. Sensors, 23(14). [CrossRef]
- Ray, S. K., Sinha, R., & Ray, S. K. (2015, June). A smartphone-based post-disaster management mechanism using WiFi tethering. In 2015 IEEE 10th conference on industrial electronics and applications (ICIEA) (pp. 966-971). IEEE.
- Ray, S. K., Pawlikowski, K., & Sirisena, H. (2009). A fast MAC-layer handover for an IEEE 802.16 e-based WMAN. In AccessNets: Third International Conference on Access Networks, AccessNets 2008, Las Vegas, NV, USA, October 15-17, 2008. Revised Papers 3 (pp. 102-117). Springer Berlin Heidelberg.
- Taj, I., & Zaman, N. (2022). Towards industrial revolution 5.0 and explainable artificial intelligence: Challenges and opportunities. International Journal of Computing and Digital Systems, 12(1), 295-320. [CrossRef]
- Sathya, A., Arthi, B., Giridharan, S., Karvendan, M., & Kishore, J. (2016). Automatic control of irrigation system in paddy using WSN. Proceedings - 2016 IEEE International Conference on Technological Innovations in ICT for Agriculture and Rural Development, TIAR 2016. [CrossRef]
- Shah, K., Pawar, S., Prajapati, G., Upadhyay, S., & Hegde, G. (2019). Proposed Automated Plant Watering System Using IoT. SSRN Electronic Journal. [CrossRef]
- Sunehra, D. (2019). Web based smart irrigation system using raspberry Pi. International Journal of Advanced Research in Engineering and Technology, 10(2).
- Singhal, V., Jain, S. S., Anand, D., Singh, A., Verma, S., Rodrigues, J. J.,... & Iwendi, C. (2020). Artificial intelligence enabled road vehicle-train collision risk assessment framework for unmanned railway level crossings. IEEE Access, 8, 113790-113806. [CrossRef]
- Usha Rani, M., & Kamalesh, S. (2014). Web based service to monitor automatic irrigation system for the agriculture field using sensors. 2014 International Conference on Advances in Electrical Engineering, ICAEE 2014. [CrossRef]
- Yong, C. T., Hao, C. V., Ruskhan, B., Lim, S. K. Y., Boon, T. G., Wei, T. S., & Shah, S. B. I. A. (2023). An Implementation of Efficient Smart Street Lights with Crime and Accident Monitoring: A Review. Journal of Survey in Fisheries Sciences, 287–305. [CrossRef]
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. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).