This video will guide you through the basics of what the Moisture Sensor is and what the moisture sensor code blocks do in MakeCode.

Moisture Sensor | Tutorial

The next section is a coding example of this sensor’s code blocks:

Continue your learning by using the Moisture Sensor in these projects: