Program design

Explanation of the program:

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

5 minutes

    • What level is considered to be dry?

If the soil moisture level (M) is less than 500

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

One second

    • What happens when button A is pressed?

It is a manual operation. The water pump operates for 5 seconds

    • What happens when button B is pressed?

The microbit shows the soil moisture level

Here is the screenshot of the microbit program: