Arduino_MKRENV - readHumidity()

Read the HTS221 sensor’s relative humidity (rH), and returns it as a percentage. Read more about relative humidity in this article.

Syntax

ENV.readHumidity()

Parameters

None.

Returns

Returns the relative humidity (rH) in percentage.

Example

Serial.print("Humidity    = ");
Serial.print(ENV.readHumidity());
Serial.println(" %");

See also