Arduino_MKRENV - readUVIndex()

Read the UV sensor’s UV index value.

Syntax

ENV.readUVIndex()

Parameters

None.

Returns

The UV sensor’s UV index value.

Example

Serial.print("UV Index = ");
Serial.println(ENV.readUVIndex());

See also