Class HTS221

java.lang.Object
com.diozero.devices.HTS221
All Implemented Interfaces:
HygrometerInterface, SensorInterface, ThermometerInterface, java.io.Closeable, java.lang.AutoCloseable

public class HTS221
extends java.lang.Object
implements ThermometerInterface, HygrometerInterface, java.io.Closeable
  • Constructor Summary

    Constructors 
    Constructor Description
    HTS221()  
    HTS221​(int controller, int address)  
  • Method Summary

    Modifier and Type Method Description
    void close()  
    float getRelativeHumidity()
    Get the relative humidity in percent.
    float getTemperature()
    Get temperature (degrees C).

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait