Reference   Language | Libraries | Comparison | Changes

ArduinoHTS221 : HTS class

readHumidity()

Description

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



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.