Arduino_HTS221 - begin()

Initialize the humidity and temperature sensor.

Syntax

HTS.begin()

Parameters

None.

Returns

1 on success, 0 on failure.

Example

if (!HTS.begin()) {
    Serial.println("Failed to initialize humidity temperature sensor!");
    while (1);
}

See also