diff --git a/DHT.cpp b/DHT.cpp index d1216bc..463a61f 100644 --- a/DHT.cpp +++ b/DHT.cpp @@ -171,7 +171,7 @@ bool DHT::read(bool force) { pinMode(_pin, INPUT_PULLUP); // Now start reading the data line to get the value from the DHT sensor. - delayMicroseconds(60); // Delay a bit to let sensor pull data line low. + delayMicroseconds(40); // Delay a bit to let sensor pull data line low. // Turn off interrupts temporarily because the next sections // are timing critical and we don't want any interruptions. diff --git a/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino b/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino index d0392f8..0f70347 100644 --- a/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino +++ b/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino @@ -5,13 +5,15 @@ // REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library -// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor +// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor #include #include #include -#define DHTPIN 2 // Pin connected to the DHT sensor. +#define DHTPIN 2 // Digital pin connected to the DHT sensor +// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 -- +// Pin 15 can work but DHT must be disconnected during program upload. // Uncomment the type of sensor in use: //#define DHTTYPE DHT11 // DHT 11 diff --git a/examples/DHTtester/DHTtester.ino b/examples/DHTtester/DHTtester.ino index 20fb2c6..ff7a961 100644 --- a/examples/DHTtester/DHTtester.ino +++ b/examples/DHTtester/DHTtester.ino @@ -3,11 +3,13 @@ // REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library -// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Senso +// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor #include "DHT.h" -#define DHTPIN 2 // what digital pin we're connected to +#define DHTPIN 2 // Digital pin connected to the DHT sensor +// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 -- +// Pin 15 can work but DHT must be disconnected during program upload. // Uncomment whatever type you're using! //#define DHTTYPE DHT11 // DHT 11 diff --git a/library.properties b/library.properties index fe2904f..d6c0164 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=DHT sensor library -version=1.3.1 +version=1.3.2 author=Adafruit maintainer=Adafruit sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors