Optimized DHT library for ESP32/ESP8266 using Arduino framework
Version 1.16 did not work well on ESP8266 due to the "CPU usage reducing delay".
Removed that change and library works well again.
Reduce CPU usage and add decimal part for DHT11
Using noInterrupts() & interrupts() instead of cli and sei
Fix typo in ESP8266 example
Updated ESP8266 example, the delay between 2 readings was too short for the DHT sensor
Fixed bug in DHT_ESP32.ino example. Added potential compatibility with DHT33 and DHT44 sensors Autodetection of sensors is not working reliable. It will be removed in the future and is now marked deprecated.
Smaller changes in the examples to mark them whether they are for ESP32 or ESP8266!
Changed ESP32 include ESP32Ticker.h
to Ticker.h
As mentioned in
https://github.com/beegee-tokyo/DHTesp/issues/6
and
https://github.com/beegee-tokyo/DHTesp/issues/5
GPIO2 should not be used for the DHT sensor on ESP32. Example is changed now to avoid problems.