mirror of
https://github.com/adafruit/DHT-sensor-library.git
synced 2023-10-23 22:20:38 +03:00

There was some handling of millis() overflow that is not needed. Standard unsigned subtraction and wraparound already works as expected, so this extra check can be removed (it even hurts, since it introduces 2 seconds after a wraparound where no new data will be read, even if it could otherwise happen). Also, this prevents calling millis() a second time, since its value is already known.
Fix #37 by optimizing pulse read to use direct port access on AVR, stops checksum failures from missed signals.
This is an Arduino library for the DHT series of low cost temperature/humidity sensors. To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
Description
Languages
C++
100%