PiStorms  4.015
PiStorms Library Reference by mindsensors.com
 All Classes Namespaces Files Functions Variables
GroveDevices.Grove_Moisture_Sensor Class Reference

This class supports the Grove Moisture Sensor v1.4. More...

Inheritance diagram for GroveDevices.Grove_Moisture_Sensor:

Public Member Functions

def __init__
def moistureLevel
- Public Member Functions inherited from PiStorms_GRX.GrovePort
def __init__

Additional Inherited Members

- Public Attributes inherited from PiStorms_GRX.GrovePort

Detailed Description

This class supports the Grove Moisture Sensor v1.4.

This sensor can detect moisture in soil. Simply insert the leads in the soil.

Documentation: http://wiki.seeed.cc/Grove-Moisture_Sensor/

1 import GroveDevices
2 # initialize a moisture sensor connected to Bank A analog 1
4 if (m.moistureLevel() < 450):
5  print("Your plant needs water!")

Member Function Documentation

def GroveDevices.Grove_Moisture_Sensor.moistureLevel (   self)
A number corresponding to the detected moisture level

The documentation for this class was generated from the following file: