Arduino_HTS221 - readHumidity()

Read the sensor’s measured relative humidity value.

Syntax

HTS.readHumidity()

Parameters

None.

Returns

The humidity value from the sensor as a percentage.

Example

float humidity = HTS.readHumidity();

Serial.print("Humidity = ");
Serial.print(humidity);
Serial.println(" %");

See also