System Design
Pin 0 of the Micro-bit is connected to the moisture sensor to collects data from sensor
Pin 1 connects to the input pin of the relay switch
The output of the relay switch is connected to the water pump and the battery box
The relay switch indirectly turns on/off the water pump