Comparison of the DHT11, DHT22, LM35, DS18B20, BME280, and BMP180 sensors:
Sensor | Temperature Range | Humidity Range | Accuracy | Interface | Price |
DHT11 | 0°C to 50°C | 20% to 80% | ±2°C | Digital | Low |
DHT22 | -40°C to 80°C | 0% to 100% | ±0.5°C | Digital | Moderate |
LM35 | -55°C to 150°C | N/A | ±0.5°C | Analog | Low |
DS18B20 | -55°C to 125°C | N/A | ±0.5°C | Digital | Low |
BME280 | -40°C to 85°C | 0% to 100% | ±1°C | I2C/SPI | Moderate |
BMP180 | -40°C to 85°C | N/A | ±0.1°C | I2C | Low |
Note:
- Temperature ranges are specified in Celsius.
- Humidity ranges are specified as a percentage.
- Accuracy indicates the sensor’s measurement accuracy.
- The interface refers to how the sensor communicates with the microcontroller.
- The price is subjective, representing a general cost range (low, moderate, high).