The DHT sensors are basic digital temperature and humidity sensors. The different versions e.g. DHT11 vs. DHT22 comes with different specifications and price.
The DHT sensors can be purchased just the sensor on its own (i.e. only the blue/white plastic part), or attached to a small PCB with a built-in pull-up resistor.
Specification
- Interface: digital
- Price
- DHT11:
- from $0.70 USD without PCB/pull-up
- from $0.80 USD with PCB/pull-up resistor
- DHT22 (AM3202):
- from $2.35 USD without PCB/pull-up
- from $2.55 USD with PCB/pull-up resistor
- DHT21 (AM2301):
- from $2.40 USD with PCB/pull-up resistor
- DHT11:
Code example
/* * * * */