Light Sensor

Non-Visible component
Category Requires Version
Sensors API 19, Android 4.4 - 4.4.4 KitKat 1

Overview

A non-visible component that gets the current illuminance level around the device in units of lux.

Events

Light Changed

Event that fires when the illuminance is changed

Params
illuminance Number

Properties

Available

Boolean ➖ Read - Blocks

Whether Sensor is Available

Enabled

Boolean Default: True ➖ Read Write - Designer Blocks

Whether Sensor should be Enabled

Illuminance

Number ➖ Read - Blocks

Returns the illuminance in lux. To return values the sensor must be enabled


Last update: January 27, 2020