SHT31
±0.2 °C · ±2 %RH · I²C · 2.15 to 5.5 V
Sensirion’s well-proven sensor: ±0.2 °C, ±2 %RH, two I²C addresses and a supply from 2.15 to 5.5 V.
Watch out: The SHT4x is newer, smaller and more accurate on humidity for the same job.
5 of the 10 features in our table differ between the SHT31 and the SHT4x.
±0.2 °C · ±2 %RH · I²C · 2.15 to 5.5 V
Sensirion’s well-proven sensor: ±0.2 °C, ±2 %RH, two I²C addresses and a supply from 2.15 to 5.5 V.
Watch out: The SHT4x is newer, smaller and more accurate on humidity for the same job.
±0.2 °C · ±1.8 %RH · I²C · 1.08 to 3.6 V
Sensirion’s current generation: ±0.2 °C and ±1.8 %RH (SHT45: ±0.1 °C, ±1.0 %RH), 80 nA idle and a built-in heater.
Watch out: Runs from 1.08 to 3.6 V only, so no 5 V. The address (0x44, 0x45 or 0x46) depends on the part code, not on a pin.
| Feature | SHT31 | SHT4x |
|---|---|---|
| Humidity accuracy | ±2 %RH | ±1.8 %RH |
| I²C address | 0x44, 0x45 (set with a pin) | 0x44, 0x45, 0x46 (set by the part code) |
| Supply | 2.15 to 5.5 V | 1.08 to 3.6 V |
| Current between readings | 0.2 µA | 0.08 µA |
| ESPHome | sht3xd | sht4x |
Same on both: measures · temperature accuracy · temperature range · interface · status.
Open the sensor comparison →Tick what your project needs and see which sensor fits best.
SHT31: I²C address, wiring and pull-ups →
SHT4x: I²C address, wiring and pull-ups →
The SHT31 offers a choice of I²C addresses, a 5 V supply, and a ready-made configuration in this site’s ESPHome generator. The SHT4x offers better humidity accuracy and less current between readings.
Typical datasheet figures: temperature ±0.2 °C for the SHT31 and ±0.2 °C for the SHT4x; humidity ±2 %RH and ±1.8 %RH. Placement matters as much as accuracy: keep either away from the board’s warm parts.
Often yes: both use I²C. Change the driver or, in ESPHome, the component (sht3xd → sht4x). Check the supply too: 2.15 to 5.5 V for the SHT31, 1.08 to 3.6 V for the SHT4x.
Figures from the makers’ datasheets and product pages and the ESPHome documentation, checked in November 2026.