upm
1.7.1
Sensor/Actuator repository for libmraa (v2.0.0)
|
API for the Moisture Sensor. More...
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.
Public Member Functions | |
Moisture (int pin) | |
~Moisture () | |
int | value () |
Moisture | ( | int | pin | ) |
Analog moisture sensor constructor
pin | Analog pin to use |
int value | ( | ) |
Gets the moisture value from the sensor