1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-13 22:28:14 +00:00
Robin Smidsrød 7df72ddb96
dht: Fix sensor reading from DHT22 (#926)
* dht: Fix sensor reading from DHT22 (#239)

Looking at the datasheet for DHT22, it claims to need a delay of 18ms, not
800us. Change to use the same delay as DHT11. Tested working with NodeMCUv3
and DHT22 sensor with board with built-in resistor.

* dht: Add model DHT22_TYPE2 with 2ms delay instead of 0.8ms

The model DHT22_TYPE2 is exactly the same as DHT22, but uses a different
delay.

* dht: Fix bogus negative temperature reading on DHT22_TYPE2

The workaround for negative numbers associated with DHT22s can be skipped
on these sensors.
2020-05-18 20:24:13 -03:00
2019-11-01 11:50:36 +01:00
2020-04-05 15:50:52 -03:00
2020-04-30 23:00:57 -03:00
2018-09-25 10:30:45 +02:00
2019-05-08 15:37:18 +02:00
2019-12-04 13:11:53 +01:00
2019-12-07 18:28:55 +01:00
2019-10-20 17:56:57 +02:00
2019-12-07 18:28:55 +01:00
2019-02-14 13:49:22 +01:00
2019-12-07 18:28:55 +01:00

ESPHome Build Status Discord Chat GitHub release

ESPHome Logo

Documentation: https://esphome.io/

For issues, please go to the issue tracker.

For feature requests, please see feature requests.

Description
No description provided
Readme Multiple Licenses 180 MiB
Languages
C++ 70.5%
Python 29.2%
C 0.1%