The Kitronik Microbit Humidity Sensor is a sensor card that can be mounted directly on a micro:bit to monitor soil moisture.
The two conductive teeth are placed in the ground. Any water or moisture in the soil will result in an analog voltage that can be read by the micro:bit.
This humidity sensor for micro:bit is powered by the 3V power supply of the micro:bit. Use the USB or JST connector of the micro:bit to power the circuit. The sensor and micro:bit can also be powered from the Mi:Power card to create a compact stand-alone unit. The card has been designed so that the micro:bit can be bolted with 3 M3 nuts and 3 M3 screws.
When using the Mi:Power card, the additional connection of P0 means that the micro:bit can trigger an alarm if the ground becomes too dry. Once mounted on the Kitronik humidity sensor, the micro:bit can be encoded via any of the micro:bit editors, such as the Microsoft MakeCode editor.
Note: For the humidity sensor to have a long and satisfactory life, it is better to write your code to perform a humidity control from time to time rather than continuously. When monitored continuously, it promotes rapid electrode erosion.