Arduino_MKRENV - begin()

Initialize the sensors on the shield.

Syntax

ENV.begin()

Parameters

None.

Returns

1 on success, 0 on failure.

Example

if (!ENV.begin()) {
    Serial.println("Failed to initialize MKR ENV shield!");
    while (1);
}

See also