DHT22 vs BME280 vs SHT41: the 2026 answer

Every ESP32 tutorial ever written wired up a DHT22, so every new builder buys one — and the comparison pages that rank for this question were written in 2019, when that was still defensible. The market moved: Sensirion-class accuracy now costs clone-board money. Here's the honest 2026 table.

SHT41AHT20BME280DHT22DS18B20
Temp accuracy±0.2 °C±0.3 °C±0.5 °C±0.5 °C±0.5 °C (genuine)
Humidity±1.8 %RH±2 %RH±3 %RH±2–5 %RH, drifts
Extrason-die heaterpressurewaterproof probes, multi-drop
InterfaceI2CI2CI2C/SPIbit-banged 1-wireDallas 1-Wire
Read speed~10 ms~80 ms~10 ms2 s minimum~750 ms
Battery-friendlyµA idleyesyes (forced mode)okyes
Clone risklowlowhigh (BMP280 substitution)mediumhigh (probes ~all fake)
Street price$1–3$1–2$2–4$2–3$1–2/probe
VerdictThe defaultCheapest goodWhen you want pressureDon't buy in 2026Wet/cold places

Accuracy figures are datasheet specs for genuine parts — see each sensor's clone-check notes, and the fake-sensor exposé for the BME280 and DS18B20 stories in full.

The short answers

As an Amazon Associate and an affiliate we may earn from qualifying purchases. Prices and availability are set by the retailer.

The two errors that dwarf the spec sheet

Self-heating. Any sensor sampled continuously warms itself — the BME280 is the classic case, reading 1–2 °C high at default settings. Run it in forced mode with a 30–60 s interval and the error mostly disappears. The bigger heater, though, is the ESP32 next to it: a Wi-Fi SoC dissipates real warmth, so mount the sensor away from the board (a short cable, or at least the far corner of the enclosure), not hovering over the voltage regulator.

The enclosure. A humidity sensor sealed in a printed case measures the case, not the room. Ventilation slots near the sensor, sensor at the bottom (heat rises), and no conformal coating over the element. These two placement mistakes cause more bad readings than every clone chip combined.

All specs and prices: the sensor table · Also measuring CO2? CO2 sensors compared (the SCD41 includes a decent temp/RH sensor).

← All sensors