Program design
Explanation of the program code:
- How often does the system detects the soil moisture level?
- The soil moisture sensor detects the humidity of the soil every 1 minute
- What level is considered to be dry?
- 700 or less
- How long (in number of seconds) does the water pump operate each time?
- It will take 2 seconds for the water pump to operate
- What happens when the button A is pressed?
- It will show the humidity of the soil
- What happens when the button B is pressed?
- It will manually turn on the water pump
This pictures shows our program code: