UPM

The UPM API is a high level sensor library for IoT devices using MRAA. See examples here. Back to index page.
SparkFun sensor images provided under CC BY-NC-SA-3.0.

GroveMoisture Class

Module: grovemoisture
  • ID: grovemoisture
  • Name: Moisture Sensor
  • Category: liquid
  • Manufacturer: seeed
  • Connection: analog
  • Kit: eak hak

UPM module for the Grove 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.
grovemoisture.jpg

Item Index

Methods

GroveMoisture

(
  • pin
)
Number

Grove analog moisture sensor constructor

Parameters:

  • pin Number

    Analog pin to use

Returns:

Number:

value

() Number

Gets the moisture value from the sensor

Returns:

Number:

Moisture reading