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.

GroveWater Class

Module: grovewater
  • ID: grovewater
  • Name: Water Sensor
  • Category: liquid
  • Manufacturer: seeed
  • Connection: gpio
  • Kit: eak

UPM module for the Grove Water sensor
water.jpg

Item Index

Methods

Methods

GroveWater

(
  • pin
)
Number

Grove digital water sensor constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

isWet

() Boolean

Gets the water (wet/not wet) value from the sensor

Returns:

Boolean:

True if the sensor is wet, false otherwise