EasyManua.ls 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
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
Sensor TypeDigital Humidity and Temperature Sensor
Communication InterfaceI2C
Operating Voltage1.5V to 3.6V
Temperature Accuracy±0.3°C (at 25°C)
Temperature Range-40 to +125°C
Humidity Range0 to 100 %RH
Humidity Accuracy±2% RH
Response Time (humidity)8 seconds

Summary

Overview

Pinouts

Power Pins

Details the VIN, 3V3, and GND pins for powering the sensor and its voltage regulator.

I2C Logic pins

Explains the SCL and SDA pins required for I2C communication with the sensor.

Assembly

Prepare the header strip

Instructions for cutting and preparing the header strip for soldering to the breakout board.

Add the breakout board

Guide on positioning the breakout board over the header pins for soldering.

And Solder!

Steps for ensuring reliable electrical contact by soldering the pins to the board.

Wiring & Test

Download Adafruit HTU21DF

Load Demo

Steps to download the library and upload an example sketch to test the sensor.

Library Reference

Downloads

Files & Datasheets

Provides links to essential resources like datasheets, Fritzing objects, and PCB files.

Schematics

Presents the circuit schematic diagram for the HTU21D-F sensor breakout board.

PCB Print

Displays the physical dimensions and layout of the sensor's printed circuit board.