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.

Water Class

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

UPM module for the Water sensor
water.jpg

Item Index

Methods

Methods

Water

(
  • pin
)
Number

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