Ever forget to water the plant? This project will guide you to use the moisture sensor to read the soil moisture level via BBC micro:bit every 5 minutes. The soil moisture sensor is used to measure the loss of moisture over time due to evaporation and plant uptake, evaluate optimum soil moisture contents for various species of plants, monitor soil moisture content to control irrigation in greenhouses and enhance bottle biology experiments.

Level of Difficultly:  Easy

1/5

List of Hardware

  • micro:bit main Board
  • Jumper Wires w/ Crocodile Clip
  • Moisture Sensor

Schematic

Sample Code

  • Construct the code below. Or you may refer the link here for the sample code:

https://makecode.microbit.org/_iDYCj83Pxgev