Skip to content

Commit d6488c1

Browse files
Change initial HIGH delay, fix comments in examples
1 parent d26e8ec commit d6488c1

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

DHT.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ bool DHT::read(bool force) {
171171
pinMode(_pin, INPUT_PULLUP);
172172

173173
// Now start reading the data line to get the value from the DHT sensor.
174-
delayMicroseconds(60); // Delay a bit to let sensor pull data line low.
174+
delayMicroseconds(40); // Delay a bit to let sensor pull data line low.
175175

176176
// Turn off interrupts temporarily because the next sections
177177
// are timing critical and we don't want any interruptions.

examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55

66
// REQUIRES the following Arduino libraries:
77
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
8-
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
8+
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
99

1010
#include <Adafruit_Sensor.h>
1111
#include <DHT.h>
1212
#include <DHT_U.h>
1313

14-
#define DHTPIN 2 // Pin connected to the DHT sensor.
14+
#define DHTPIN 2 // Digital pin connected to the DHT sensor
15+
// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 --
16+
// Pin 15 can work but DHT must be disconnected during program upload.
1517

1618
// Uncomment the type of sensor in use:
1719
//#define DHTTYPE DHT11 // DHT 11

examples/DHTtester/DHTtester.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33

44
// REQUIRES the following Arduino libraries:
55
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
6-
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Senso
6+
// - Adafruit Unified Sensor Lib: https://github.com/adafruit/Adafruit_Sensor
77

88
#include "DHT.h"
99

10-
#define DHTPIN 2 // what digital pin we're connected to
10+
#define DHTPIN 2 // Digital pin connected to the DHT sensor
11+
// Feather HUZZAH ESP8266 note: use pins 3, 4, 5, 12, 13 or 14 --
12+
// Pin 15 can work but DHT must be disconnected during program upload.
1113

1214
// Uncomment whatever type you're using!
1315
//#define DHTTYPE DHT11 // DHT 11

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=DHT sensor library
2-
version=1.3.1
2+
version=1.3.2
33
author=Adafruit
44
maintainer=Adafruit <[email protected]>
55
sentence=Arduino library for DHT11, DHT22, etc Temp & Humidity Sensors

0 commit comments

Comments
 (0)