Grove - Moisture sensor

From Wiki
Jump to: navigation, search


This Moisture Sensor can be used to detect the moisture of soil or judge if there is water around the sensor, let the plants in your garden reach out for human help. They can be very easy to use, just insert it into the soil and then read it. With the help of this sensor, it will be possible to make the plant remind you: Hey, I am thirsty now, please give me some water.

Moisture sensor .jpg


Soil moisture sensor based on soil resistivity measurement Easy to use 2.0cmX6.0cm Grove module Specification

Item Condition Min Typical Max Unit Voltage - 3.3 / 5 V Current - 0 / 35 mA Output Value Sensor in dry soil 0 ~ 300 / Sensor in humid soil 300 ~ 700 / Sensor in water 700 ~ 950 / Application Ideas

Botanical gardening Moisture sensing Consistency measurement Usage

This is a summary of the moisture sensor which can be used to detect the moisture of the soil. When the soil moisture deficits, the sensor output value will decrease. You can know whether a plant needs water or not by observing the results that the sensor outputs. The following sketch demonstrates a simple application of sensing the moisture of the soil.

Connect this module to one of analog port A0 of Grove - Base Shield with the 4 pin Grove cable, and then insert the Sensor into the soil or place it anywhere you want. Plug Grove - Base Shield into the Arduino/

and connect Arduino to PC via a USB cable.

The hardware installation as shown below:


Note:This sensor isn't hardened against contamination or exposure of the control circuitry to water and may be prone to electrolytic corrosion across the probes, so it isn't well suited to being left in place or used outdoors.

Copy and paste code below to a new Arduino sketch. int sensorPin = A0; // select the input pin for the potentiometer int sensorValue = 0; // variable to store the value coming from the sensor

void setup() {

 // declare the ledPin as an OUTPUT:


void loop() {

 // read the value from the sensor:
 sensorValue = analogRead(sensorPin);    
 Serial.print("sensor = " );                       

} Upload the code, please click here if you do not know how to upload. The Result in different condition after open the serial monitor:

No load.jpg

Dry soil.jpg

Humility soil.jpg

IN water.jpg

Sensor in air Sensor in dry soil Sensor in humid soil Sensor in water Version Tracker

Revision Descriptions Release v0.9b Initial public release 13,Sep,2011