Arduino_MKRENV - readLux()

Description

Read the light sensor’s value.

Syntax

ENV.readLux()

Parameters

None

Returns

The light sensor’s value in Lux.

Example

Serial.print("Lux: ");
Serial.println(ENV.readLux());

See also