Python driver for HTU21D-F temp/hum sensor
Switch branches/tags
Nothing to show
Clone or download
Latest commit 56b48d3 Aug 25, 2014
Failed to load latest commit information. Create Aug 24, 2014 Create Aug 24, 2014 Create Aug 24, 2014 Create Aug 24, 2014


This is a python driver to use with Adafruit's HTU21D-F breakout board.

This driver requires the pigpio library, available at

To install this library please navagate to its folder and sudo python install

I wanted to use this sensor in a project with a Raspberry Pi but I only found drivers written in C, so I wrote my own.

Please keep in mind that it does not use every function offered by the sensor. When temperature and humidity are read the i2c clock is held though there is a no hold mode available. I also have not writted functions to read and write to the user register. The only functions are read_temperature, read_humidity, and reset.

If you use an old revision A Raspberry Pi you will have to change the i2c bus in the driver from 1 to 0.