HTU21D is a digital humidity sensor with temperature output that uses MEAS (Measurement Specialties), the chip has embedded in a reflow solderable Dual flat leads (DFN) package with a size of 3X3X0.9MM. The HTU21D provides a calibrated linearized signal in digital, additionally, it communicates using TWI / i2C protocol. These chips are designed and dedicated to temperature and humidity plug/play transducers along with reliable and accurate measurements. However, with the integration of most popular microcontroller are need to acquire signal output with this sensor. HTU21X is powered by 3 ~ 3.8 max voltage suitable for home appliances, medical equipment, printers, humidifiers, handheld devices, computers, any devices that do expose to -40 Degree to 125 Degree Celsius.

This sensor is calibrated and factory tested with a checksum improves communication reliability, with a resolution that can be changed by a command 8/12bit up to 12/14bit. Additionally, it has an optional PTFE filter membrane that protects the HTU2D sensor against dust and water immersion as well as against contamination by a particle. These PTFE filters preserve a high response time and integrated already in the sensor housing.

The HTU21D is suitable for many uses, especially for environmental purposes, and digital probes. For more technical details please refer to the technical documentation and datasheets below.

Requirements and Alternatives

  • Arduino IDE | Atmel Studio | MPLAB | Energia | PlatformIO | Processing |
  • Eclipse IDE | embedXcode | Ktechlab | Codebender | Visual Micro | Zeus IDE
  • SONY SPRESENSE Development Board
  • ESPRESSIF 
    • ESP8266 12, 12E, ESP32, ESP8266 NodeMCU, ESPDuino
  • Microchip
    • ATMEGA4809 Curiosity Nano, ChipKIT DP32, chipKIT WF32,
  • ARDUINO
    • MKR WAN, MKMKRPRO, FIO, NANO, EVERY, UNO, MINI, MEGA, PRO MINI, LEO, BT, DUE, ETHERNET,LILYPAD, ATMEGA328 16/12, ATMEGA32u4 16/8/ MHz, ESP8266,ATMEGA250 16 MHz, ATSAM3x8E, STM32,
    • Note: For AVR (please see the flash size of the MCU  and respective pin-outs & bus configuration )
    • Note: The Diagram below is using ATMEGA328TQFP & ATMEGA4809. (please refer to each MCU’s respective pin-outs & bus configuration)
  • Others
    • Teensy, MSP430 Launchpad, Flora, Metro, Trinket, Pro Trinket, LinkItOne.
  • HTU21D Sensor
  • XC6206 3.0 Regulator / AMS1117 3.3v Regulator
  • NTJD4401N Dual N-Channel MOSFET
  • Resistors (See below required values)
  • Capacitor(See below required values)

Wiring Guide

Source Code

Downloads

Wiring The TE-HTU21D Digital Humidity Sensor
Facebooktwitterredditpinterestmail
Tagged on:             

Leave a Reply

Your email address will not be published. Required fields are marked *