pyupm_moisture module

class pyupm_moisture.Moisture(pin)[source]

Bases: object

API for the Moisture Sensor.

ID: moisture

Name: Analog Moisture Sensor

Other Names: Grove Moisture Sensor

Category: liquid

Manufacturer: seeed

Connection: analog

Kit: eak hak UPM module for the Moisture Sensor. This sensor can be used to detect the moisture content of soil or whether there is water around the sensor. As the moisture content increases, so does the value that is read. Note: this sensor is not designed to be left in soil nor to be used outdoors.

C++ includes: moisture.hpp

value()[source]

int value()

Gets the moisture value from the sensor

Moisture reading