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.

BISS0001 Class

Module: biss0001

PIR sensors allow you to sense motion, almost always used to detect whether a human has moved in or out of the sensors range. They are small, inexpensive, low-power, easy to use and don't wear out. For that reason they are commonly found in appliances and gadgets used in homes or businesses. They are often referred to as PIR, "Passive Infrared", "Pyroelectric", or "IR motion" sensors.
biss0001.jpg

Item Index

Methods

BISS0001

(
  • pin
)
Number

BISS0001 motion sensor constructor

Parameters:

  • pin Number

    Digital pin to use

Returns:

Number:

value

() Boolean

Gets the motion value from the sensor.

Returns:

Boolean:

true if motion was detected, false otherwise.

motionDetected

() Boolean

Gets the motion value from the sensor. This is a more informative method name, but we want to keep compatibility with the original for now.

Returns:

Boolean:

true if motion was detected, false otherwise.