How to Use Soil Moisture Sensor Module

Photo of Soil Moisture Sensor Module

You can measure the moisture in the soil. It can also be used to determine the timing for watering plants.

**Caution**: The sensor part is not waterproof, so please be careful. If water gets on parts other than the sensor, it may cause malfunction or ignition. When using in areas where water may get on parts other than the sensor, wrap them with insulating tape, etc.

About the Module

The sensor in the red circle part of the photo can detect moisture and output the soil humidity as an analog signal (0 to 1023).

Photo explaining the sensor position of the Soil Moisture Sensor Module

Specifications

Voltage3~5V
Output SignalAnalog
Size 63 x 20 (mm)

Connection

Connect the Soil Moisture Sensor Module to the SPACEBLOCK microcontroller board using jumper wires (male-female) as follows:

  • Connect the S pin of the soil moisture sensor to the analog-compatible pin of SPACEBLOCK
  • Connect the G pin of the soil moisture sensor to the GND pin of SPACEBLOCK
  • Connect the V pin of the soil moisture sensor to the 5V or 3.3V pin of SPACEBLOCK
Connection method between SPACEBLOCK microcontroller board and Soil Moisture Sensor Module

※The image shows the signal line connected to pin A0. Analog-compatible pins are A0 to A7, B0 to B1.

※5V, 3.3V, and GND can also be inserted into the pins with the same notation on the SPACEBLOCK microcontroller board.

Usage

The sensor detects the moisture in the soil and returns a value. The higher the moisture level, the higher the value. You can retrieve values from the Soil Moisture Sensor Module using blocks in the 'Input' category of the project.


For detailed usage of the blocks, click here

Analog Reading