Program design

The screenshot of the Micro:bit program:


Explanation of the program code:

    • How often does the system detects the soil moisture level?

It detects in every 10 seconds

    • What level is considered to be dry?

If the moisture level is lower than 900, it is considered to be dry.

    • How long (in number of seconds) does the water pump operate each time?

The water pump operates for 3 seconds each time.