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.

WaterLevel Class

Module: waterlevel
  • ID: waterlevel
  • Name: Water Level Sensor
  • Category: liquid
  • Manufacturer: seeed
  • Connection: gpio

This switch is a device used to sense the level of liquid within a tank, it may actuate a pump, an indicator, an alarm, or other devices.
waterlevel.jpg

Item Index

Methods

WaterLevel

(
  • pin
)
Number

WaterLevel constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

isSubmerged

() Boolean

Returns:

Boolean:

bool Determines whether liquid has risen above the sensor