What is a SHT31 sensor ?
The SHT31 is an integrated digital temperature and humidity sensor developed by Sensirion (Switzerland).
It succeeds the SHT21 and SHT15, offering improved accuracy, long-term stability, and immunity to contaminants (thanks to its optional protective coating).
It is a preferred component for all ambient measurement applications where reliability and calibration are essential.
Operating principle
The SHT31 uses two internal sensing elements:
- an integrated temperature measurement diode (for compensation calculation),
- a capacitive humidity sensor whose dielectric constant varies with moisture content.
These two measurements are converted into digital values via a 16-bit ADC and transmitted via I²C.
The conversion equations are standardized by Sensirion:
T(°C) = −45 + 175 × (S_T / 65535)
where S_T and S_RH are the raw values read (16 bits).
Temperature / humidity curve (Conversion examples)
| Raw measurement (hex) |
Temperature (°C) | Humidity (%) |
0x0000 |
-45 | 0,0 |
| 0x8000 | 42,5 | 50,0 |
0xFFFF | 130 | 100,0 |
💡 The output is linear and factory calibrated — no additional correction needed.
Principle diagram (I2C connection)
+3.3V │ [SHT31] │ SDA ─────────┐ │ SCL ─────────┤── [I²C Microcontroller] │ ADDR (option) │ GND
💡 ADDR connected to GND → 0x44; to VCC → 0x45.
Two SHT31 sensors can coexist on the same bus.
Application areas
🌤️ Connected weather stations
🧠 IoT and home automation systems
⚙️ Climate chambers and HVAC
🧪 Environmental instrumentation
🏭 Industrial humidity/temperature monitoring