Skip to Content
GUILCOR SENSORS
  • Home
  • Probes
    Smooth tube probe

    Smooth Tube

    Refrigerator, heat pump, oven, freezer, water heater
    Contact probe

    Contact

    Pipe, pipe surface, heating plate
    Slot probe

    Slot

    Motor, alternator, winding, stator
    Head connection probe

    Connection head

    Boiler, heat pump, air conditioning, technical rooms, ventilation
    Waterproof probe

    Waterproof

    Air conditioning, ventilation, refrigeration, cold storage, ductwork
    Stick-in probe

    Stick-in

    Oven, cooking, food processing equipment
    Winding probe

    Winding

    Motor, alternator, transformer, winding, stator
    Ambient probe

    Ambient

    Boiler, heat pump, air conditioning, technical rooms, ventilation
    Thread probe

    Thread

    Coffee machine, boiler, steam, pressurized fluid
    Jacketed probe

    Jacketed

    Industrial installations, heavy-duty applications
    Bayonet probe

    Bayonet

    Plastic molding, tooling, injection molding machine, engine, alternator
    PCBA Design

    PCBA design

    Specific application, embedded electronics, custom electronic boards
  • Sensors

    RTD

    Pt10, Pt50, Pt100, Pt200, Pt500, Pt1000, Pt5000, Ni100, Ni120, Cu10, Cu50, Balco

    PTC

    KTY81-110, KTY81-210, KTY83-110, KTY84-130, PTC130, Silistor, TFPT, MZ6, MZ8, MZ9

    1-Wire

    DS18B20, DS18S20, DS1822, DS28EA00, DS18B20-PAR, DS1920, DS2438, DS1835...

    Thermocouple

    B, E, J, K, N, R, S, T, C, D, G

    UART

    MLX90614, MLX90615, GY-906, DHT11, DHT22, SHT75, SHT85, RS232, RS485

    SPI

    MAX6675, MAX31855, MAX31856, MCP3208, TMP125, TMP121, ADT7310, LTC2983...

    NTC

    1kΩ, 2kΩ, 3kΩ, 5kΩ, 10kΩ, 15kΩ, 20kΩ, 30kΩ, 50kΩ, 100kΩ, 200kΩ, 470kΩ, 1MΩ

    I²C

    TMP102, TMP117, LM75, LM73, MCP9808, MCP9600, SHT31, SHTC3, BME280, BME688, HTU21D, HDC1080, Si7051, ADT7410, STTS751, TCN75A...
  • About us
  • 0
  • 0
  • Follow us
  • English (US) Français Español
  • Sign in
  • Contact Us
GUILCOR SENSORS
  • 0
  • 0
    • Home
    • Probes
    • Sensors
    • About us
  • Follow us
  • English (US) Français Español
  • Sign in
  • Contact Us

 HTU21D 
 Temperature sensors 

Digital temperature and humidity sensor offering reliable performance for HVAC and consumer electronics.

 Measurement range
-40 / 125°C

 Temperature accuracy
+/- 0,3°K

 Humidity accuracy
+/- 2,0 % Rh

 Resolution (Rh and T°)
12 and 14 bits

 Power supply voltage
1,4 → 3,6V

Conversion time
5ms / 85ms

 Typical current
500µA(active)

 Price
Low

What is a HTU21D sensor ?Operating principleTemperature / Humidity Curve (examples)Principle diagram (I2C connection)Application areas

What is a HTU21D sensor ?


The HTU21D is a digital relative humidity and temperature sensor with a calibrated and compensated I²C output.

It is often compared to the SHT21 from Sensirion, with which it shares a nearly identical design and protocol.

It is a reliable, stable, and cost-effective sensor, ideal for IoT, weather, home automation, or HVAC applications.

Operating principle


The sensor combines:

  • a polymer capacitive cell sensitive to humidity,
  • an integrated temperature sensor (for RH compensation),
  • a 14-bit ADC converter, and a calibration EEPROM.

The measurements are compensated and converted into physical values from the raw data using standardized formulas:

RH(%) = −6 + 125 × (S_RH / 65536)

T(°C) = −46,85 + 175,72 × (S_T / 65536)

Temperature / Humidity Curve (examples)


Raw measurement (hex) Temperature (°C) Humidity (%)
0x0000 −46,8 0,0
0x8000 +41,0 62,5
0xFFFF +128,9 119,0

💡 The formulas are linear and factory calibrated.

Principle diagram (I2C connection)


+3.3V │ [HTU21D] │ SDA ─────────┐ │ SCL ─────────┤── [I²C Microcontroller │ GND

💡 Fixed I²C address: 0x40.

Application areas


🌦️ Weather stations and IoT sensors

🏠 Home automation and HVAC

🧠 Low-power embedded applications

🧪 Surface temperature/humidity measurement

🕹️ DIY environmental sensors (Arduino, ESP32, Raspberry Pi)



Should I choose a HTU21D sensor ?

Strengths points

  • 💰 Excellent value for money
    → Precise, stable, and very affordable, ideal for IoT projects or serial sensors.
  • 🧠 Factory calibrated and compensated
    → No software calibration required.
  • ⚙️ Simple interface
    → Standard I²C protocol, compatible with the majority of microcontrollers.
  • 📉 Low energy consumption
    → Less than 1 µA in standby, perfect for battery power.
HTU21D sensors

Weaknesses points

  • 🌬️ Sensitive to condensation and dust
    → Not protected by a hydrophobic coating (provide a filter if needed).
  • 📡 One single I²C address
    → It is impossible to connect multiple without a multiplexer.
  • 🌡️ Lower accuracy than modern sensors (SHT3x, MCP9808)
    → Very good for general measurements, but not for fine metrology.

Useful information

Here is some useful information regarding the HTU21D sensors.

Command (hex)
Function
0xE3 Température measurement (hold master)
0xF3 Température measurement (no hold)
0xE5 Humidity measurement (hold master)
0xF5 Humidity measurement (no hold)
0xE6 Write user register
0xE7 Read user register
0xFE Reset logiciel

// Temperature lecture i2c_start(); i2c_write(0x40 << 1); i2c_write(0xE3); delay(85); i2c_start(); i2c_write((0x40 << 1) | 1); MSB = i2c_read_ack(); LSB = i2c_read_ack(); CRC = i2c_read_nack(); i2c_stop(); S_T = (MSB << 8) | LSB; temp = -46.85 + 175.72 * (S_T / 65536.0);

✅ Exemple :

S_T = 35 000 → T = 46,8 °C

S_RH = 33 000 → RH = 56,0 %

3.3V ───────────┐ │ [HTU21D] │ SDA ───────┐ │ SCL ───────┤── MCU (Arduino, ESP32, STM32…) │ GND

💡 Provide pull-up resistors of 10 kΩ on SDA/SCL if not included on the module.

Bit Name
Description
7 Resolution 0: RH 12b / T 14b ; 1: RH 8b / T 12b
2 Heater 1 = ON (deactivates humidity)
1 Battery 0 = OK ; 1 = low battery
0 Reserved —

💡 The built-in heating prevents condensation in case of saturated humidity.

Temperature (°C) Error (K) HR Error (%)
−40 ±0,5 ±3,0
0 ±0,3 ±2,0
50 ±0,3 ±2,0
100 ±0,4 ±3,0

💡 The HTU21D remains accurate and stable over the long term — typical drift <0.25 % RH/year.

 We integrate any sensor into any probe 

Smooth tube probe

 Smooth tube 

Waterproof probe

 Waterproof

Smooth tube probe

 Bayonet

Slot probe

 Slot

Ambient probe

 Atmosphere

Head connection probe

Termal block

Stick-in probe

Stick-in

Thread probe

Thread

Contact probe

Contact

Jacketed probe

Jacketed

PCBA Design

PCBA design

Winding probe

Winding

More than 1,000,000 probes delivered in 2025

Contact us for a personalized offer

Contact Us

Need a HTU21D sensor?

Whether you need a few parts for a prototype or several hundred for a production line, we support you at every step.

Submit
Useful Links
  • Home
  • About Us
  • Jobs
  • Legal Notices
  • Privacy Policy
  • Contact us
About us

At Guilcor, our mission is to provide every client with a measurement solution perfectly suited to their specific needs. With full control over design and manufacturing, we ensure the precision and reliability of our sensors in even the most demanding environments.

Technical excellence and customer satisfaction are at the heart of everything we do.

Connect with us
  • Contact us
  • contact@guilcor.com
Follow us