DHT11 vs DHT20 vs DHT21 vs DHT22 vs SHT30 vs SHT41 vs SHT45 vs DS18B20 vs LM35

For a quick comparison of the sensors, we’ve put together the following table that shows the most important information when it comes to select a temperature sensor namely: communication protocol, supply voltage, temperature range and accuracy.

  MeasuresCommunication
protocol
Supply
Voltage
Temperature
range
Temperature
accuracy(Typical)
Humidity
accuracy(Typical)
DHT11Temperature
& Humidity
One-wire3.3 to 5.5V0 to 50ºC±2 ºC at 0-50 °C±?? RH
DHT20 (AHT20)Temperature
& Humidity
I²C2.2 to 5.5V-40 to 80ºC±0.3 ºC at 20-60 °C
±0.5 ºC at -40-80 °C
±2% at 20-80% RH
±3% at 0-100% RH
DHT21 (AM2301)

Temperature

& Humidity

One-wire3.3 to 5.2V-40 to 80ºC±0.3 ºC at 20-60 °C
±0.5 ºC at -40-80 °C
±2% at 30-80% RH
±3.5% at 0-100% RH
DHT22 (AM2302)

Temperature

& Humidity

One-wire3.3 to 6V-40 to 80ºC±0.5 ºC at -40-80 °C

±2% to ±5% RH
at 0-100% RH

SHT30 

Temperature

& Humidity

Analog3.3 to 5.5V-40 to 125ºC±0.2°C at 10~55°C (typical)
±1.5°C at -40°C~125°C (typical)
Resolution: 0.01°C, 14bit
±3 % @ 10~90 %RH (typical)
±8 % @ 0~100 %RH (typical)
Resolution: 0.006 %, 14bit
SHT41 

Temperature

& Humidity

I²C1.08 to 3.6V-40 to 125ºC±0.2 ºC±1.8 RH
SHT45 

Temperature

& Humidity

I²C1.08 to 3.6V-40 to 125ºC±0.1 ºC±1.5 RH
LM35 TemperatureAnalog4 to 30V-55 to 150ºC±0.5 ºC at 25 ºCN.A.
DS18B20 TemperatureOne-wire3 to 5.5V-55 to 125ºC±0.5 ºC at -10-85 °CN.A.