Getting Started
Starter Kit
Controller Board
Electronic Module

1.Product Introduction

../../_images/Moisture-1.png

Soil moisture sensor is a sensor used to detect soil moisture, which can sense the soil condition in time to make plants grow better.

The soil moisture sensor is to insert two probes into the soil, and then as the current passes through the soil, the sensor obtains the resistance value by reading the current change between the two probes, and converts this resistance value to the moisture content. The higher the moisture (and the less resistance), the better the conductivity of the soil. Therefore, if the soil is short of water, the analog value output by the sensor will decrease; Otherwise, it will increase.

Application reference: smart agriculture, plant research and other scenarios that need to sense soil moisture.

2.Parameter Specification

Parameter Value//Description
Operating voltage 3.3V~5V
output voltage 0V~2.3V
Output signal analog signal
Size 2.3cm*6.28cm
../../_images/Moisture-5.jpg

3.Wiring Diagram

../../_images/Moisture-2.png
Moisture Sensor UNO
VCC 5V
GND GND
S Analog Pin A0

4.Sample Code

1//www.acebott.com
2void setup(){
3pinMode(A0, INPUT);//Set pin A0  to input mode
4  Serial.begin(9600);//Set baud rate to 9600
5}
6void loop(){
7  Serial.println(analogRead(A0));// Read the state of pin A0and print it to the serial monitor
8  delay(1000);
9 }

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE and set the baud rate to 9600.

When we place the module in wet soil or water, the wetter the module’s contact surface, the larger the value returned; When we place the module into dry soil or air, the drier the contact surface of the module, the smaller the value returned.

../../_images/Moisture-3.png
../../_images/Moisture-4.png

Hint

The live part of the sensor should not touch water.

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

Individual buyer: shop on aliexpress

© Copyright ACEBOTT All Rights Reserved.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.