Reads temperature and humidity from Honeywell sensors using the i2c interface.
Sensors with SPI output are not supported!
Likely to work with the following sensors:
-
1.7 percent relative humidity accuracy (Datasheet):
HIH9120-021-xxxx
HIH9121-021-xxxx
HIH9130-021-xxxx
HIH9131-021-xxxx -
2 percent relative humidity accuracy (Datasheet):
HIH8120-021-xxxx
HIH8121-021-xxxx
HIH8130-021-xxxx
HIH8131-021-xxxx (tested with this sensor) -
3 percent relative humidity accuracy (Datasheet):
HIH7120-021-xxxx
HIH7121-021-xxxx
HIH7130-021-xxxx
HIH7131-021-xxxx -
4 percent relative humidity accuracy (Datasheet):
HIH6120-021-xxxx
HIH6121-021-xxxx
HIH6130-021-xxxx
HIH6131-021-xxxx -
4 percent relative humidity accuracy (Datasheet):
HIH6120-021-xxxx
HIH6121-021-xxxx
HIH6130-021-xxxx
HIH6131-021-xxxx
The code follows the Technical Note on I2C communication with Honeywell sensors
See also: Blog post on interfacing Honeywell humidity sensors on a Raspberry Pi 2.
Make sure you have i2c-tools
and libi2c-dev
installed on your system.
On Debian-based systems (Ubuntu, Raspbian):
$> sudo apt-get install i2c-tools libi2c-dev
Then issue make
:
$> make
Run the executable via
$> ./i2cHoneywellHumidity
The code is provided under a permissive MIT/X11-style license. See file LICENSE.txt for details.