Passa al contenuto
guilcor.com
  • Home
  • Prove
    Sonda a tubo liscio

    Tubo Liscio

    Frigorifero, pompa di calore, forno, congelatore, scaldabagno
    Sonda di contatto

    Contatto

    Tubo, superficie del tubo, piastra riscaldante
    Sonda a fessura

    Fessura

    Motore, alternatore, avvolgimento, statore
    Sonda di connessione testa

    Testa di connessione

    Caldaia, pompa di calore, aria condizionata, locali tecnici, ventilazione
    Sonda impermeabile

    Impermeabile

    Aria condizionata, ventilazione, refrigerazione, stoccaggio a freddo, condotti
    Sonda da infilare

    Infilare

    Forno, cottura, attrezzature per la lavorazione degli alimenti
    Sonda di avvolgimento

    Avvolgimento

    Motore, alternatore, trasformatore, avvolgimento, statore
    Sonda ambientale

    Ambientale

    Caldaia, pompa di calore, aria condizionata, locali tecnici, ventilazione
    Sonda a filettatura

    Filettatura

    Macchina da caffè, caldaia, vapore, fluido pressurizzato
    Sonda giacketata

    Giacketata

    Installazioni industriali, applicazioni pesanti
    Sonda a baionetta

    Baionetta

    Stampaggio plastico, attrezzature, macchina per stampaggio ad iniezione, motore, alternatore
    Progettazione PCBA

    progettazione PCBA

    Applicazione specifica, elettronica integrata, schede elettroniche personalizzate
  • Sensori

    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...

    Termocoppia

    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...
  • Chi siamo
  • 0
  • 0
  • Seguici
  • English (US) Français Italiano Español
  • Accedi
  • Contattaci
guilcor.com
  • 0
  • 0
    • Home
    • Prove
    • Sensori
    • Chi siamo
  • Seguici
  • English (US) Français Italiano Español
  • Accedi
  • Contattaci

 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 (I²C 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
Collegamenti utili
  • Casa
  • Chi Siamo
  • Lavori
  • Note Legali
  • Informativa sulla Privacy
  • Contattaci
Chi siamo

Presso Guilcor, la nostra missione è fornire a ogni cliente una soluzione di misurazione perfettamente adatta alle proprie esigenze specifiche. Con il pieno controllo sul design e sulla produzione, garantiamo la precisione e l'affidabilità dei nostri sensori anche negli ambienti più esigenti.

L'eccellenza tecnica e la soddisfazione del cliente sono al centro di tutto ciò che facciamo.

Entra in contatto con noi
  • Contattaci
  • contact@guilcor.com
Seguici

Politica sui cookie

Usiamo cookie per garantirti la migliore esperienza utente sul nostro sito web. Informativa sui cookie

Solo essenziali Accetto