Motion
Get Motion

ReferenceScript nodesScene

Get Sensor Reading

The latest reading of one of the scene's sensors (those its Sensors tab lists), when it came (ms) and whether there is one.

ScenePure: no flow pinssensor

Inputs

PinTypeStarts atNotes
Sensorsensortext"pulse"–

Outputs

PinType
Resultvalueany
Whenatnumber
Has Onehasbool

The code it becomes

The graph below written as a script would write it.

// On Scene Startscene.log(((scene.sensor("pulse") || { value: null }).value));

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.