Motion
Get Motion

ReferenceScripting APIMotionScenesensor

MotionScene.sensor

method

The latest reading of one of the scene's sensors (those its Sensors tab lists).

Namesensor
Kindmethod of MotionScene
Called asscene.sensor(…)
As a nodeGet Sensor Reading (logic graph)
Since0.3

Syntax

sensor(name: string): { value: any; at: number } | null

Parameters

NameTypeDescription
namestringThe name it's shared as ("pulse"), or its sensor's id ("heart_rate")

Returns

{ value: any; at: number } | null: (at: ms since 1970), or null before a reading.

See also

In examples: Pulse