EasyManuals Logo

Adafruit Industries HTU21D-F User Manual

Default Icon
18 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #15 background imageLoading...
Page #15 background image
You can try breathing on the sensor to increase the humidity. The sensor reacts very fast!
Library Reference
The library we have is simple and easy to use
You can create the Adafruit_HTU21DF object with:
Adafruit_HTU21DF htu = Adafruit_HTU21DF()
There are no pins to set since you must use the I2C bus!
Then initialize the sensor with:
htu.begin()
this function returns True if the sensor was found and responded correctly and False if it
was not found
Once initialized, you can query the temperature in °C with
htu.readTemperature()
Which will return floating point (decimal + fractional) temperature. You can convert to
Fahrenheit by multiplying by 1.8 and adding 32 as you have learned in grade school!
© Adafruit Industries
https://learn.adafruit.com/adafruit-htu21d-f-temperature-humidity-
sensor
Page 15 of 18

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Adafruit Industries HTU21D-F and is the answer not in the manual?

Adafruit Industries HTU21D-F Specifications

General IconGeneral
BrandAdafruit Industries
ModelHTU21D-F
CategoryTemperature Controller
LanguageEnglish