The Humidity and Temperature sensor provides values of relative humidity and external temperature.
Creates a SI7006A20 object. Constructor must be passed a Pycoproc or I2C object to successfully construct.
Read the relative humidity of the sensor. Returns a float with the percentage relative humidity.
Read the external temperature of the sensor. Returns a float with the temperature in degrees Celcius.
Calculates the dew point temperature for the current temperature and humidity measurement.
Enable or disable the internal heating element by setting state to True
or False
respectively. The internal heating element can be used to remove any condensation from the temperature sensor in order to get more accurate readings. Note that this will increase the temperature readings. By default, the heater is disabled.
Read the current setting of the internal heater. This will return a value between 0 and 15, where 0 corresponds with 3.09 mA and 15 with 94.20 mA. All values in between scale linearly
Write the current setting of the internal heater. Use a value between 0 and 15, where 0 corresponds with 3.09 mA and 15 with 94.20 mA.