Moisture sensor

From Geeetech Wiki
Revision as of 06:51, 17 September 2012 by Admin (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

Moisture sensor.jpg

This Moisture Sensor can detect the moisture of the soil around the sensor, which is ideal for monitoring the indoor plants or the soil moisture in your garden. It can be very to use, just insert it into the soil and then read it.

This sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the moisture level. More water makes the soil conduct electricity better, while dry soil conducts electricity is poor.

Specification

  • Power supply: 3.3v or 5v
  • Output voltage signal: 0~4.2v
  • Current: 35mA
  • Value range:
    • 0 ~300 : dry soil
    • 300~700 : humid soil
    • 700~950 : in water

Wiring diagram

Moisture wiring.jpg

Moisture Table.jpg

Example code

/*
 # Example code for the moisture sensor
 # Editor     : Lauren
 # Date       : 13.01.2012
 # Version    : 1.0
 # Connect the sensor to the A0(Analog 0) pin on the Arduino board
  
 # the sensor value description
 # 0  ~300     dry soil
 # 300~700     humid soil
 # 700~950     in water
*/
void setup()
{
   Serial.begin(9600);
}
void loop()
{
 Serial.print("Moisture Sensor Value:");
 Serial.println(analogRead(0)); 
 delay(100);
}

How to buy

Click here to buy the Moisture Sensor