The materials we will use;
1 Keyestudio soil moisture sensor,
1 x 3-pin relay module,
1 x 4-battery slot,
1 x 6V 120 L/sec mini submersible water pump,
1 piece of 4-leg button,
1 breadboard,
mixed jumper cables,
There is 1 LCD screen with I2C module.
This is exactly what we want to do using Arduino UNO;
The system will work as follows. When we press the switch, it will come to the auto mode and will only work according to the data it receives from the soil moisture sensor, and when we take the switch to the manual position, it will work according to the time interval and duration we will enter.
The only thing to write on the screen is whether the system is in auto or manual mode.
For example, I pressed the switch once, it went to the manual position. We saw on the LCD screen that the system was in manual mode. It will only water for 300 seconds every 86400 seconds we entered. When we press the switch one more time, the system will come to automatic mode. After seeing that the system is in automatic mode on the LCD screen, the system will switch to operating mode only according to the humidity detected by the soil moisture sensor.