Skip to content

Light Sensor

Non-Visible component
Category Requires Version
Sensors API 21, Android 5.0 Lollipop 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: November 9, 2022