Skip to content

Commit 4294ef1

Browse files
authored
Fix different issues with DHT sensors (#510)
* Updated doc with https://github.com/markruys/arduino-DHT * Added additional delay across sampling
1 parent 0f2eb4f commit 4294ef1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ SensorDigitalOutput | 1 | Generic digital output sensor, allows setting
9999
SensorRelay | 1 | Relay sensor, allows activating the relay | -
100100
SensorLatchingRelay1Pin | 1 | Latching Relay sensor, allows toggling the relay with a pulse on the configured pin | -
101101
SensorLatchingRelay2Pins | 1 | Latching Relay sensor, allows turing the relay on and off with a pulse on the configured pins | -
102-
SensorDHT11 | 2 | DHT11 sensor, return temperature/humidity based on the attached DHT sensor | https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/DHT
103-
SensorDHT22 | 2 | DHT22 sensor, return temperature/humidity based on the attached DHT sensor | https://github.com/mysensors/MySensorsArduinoExamples/tree/master/libraries/DHT
102+
SensorDHT11 | 2 | DHT11 sensor, return temperature/humidity based on the attached DHT sensor | https://github.com/markruys/arduino-DHT
103+
SensorDHT22 | 2 | DHT22 sensor, return temperature/humidity based on the attached DHT sensor | https://github.com/markruys/arduino-DHT
104104
SensorSHT21 | 2 | SHT21 sensor, return temperature/humidity based on the attached SHT21 sensor | https://github.com/SodaqMoja/Sodaq_SHT2x
105105
SensorHTU21D | 2 | HTU21D sensor, return temperature/humidity based on the attached HTU21D sensor | https://github.com/SodaqMoja/Sodaq_SHT2x
106106
SensorInterrupt | 1 | Generic interrupt-based sensor, wake up the board when a pin changes status | -

sensors/SensorDHT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SensorDHT: public Sensor {
5151

5252
// define what to do during setup
5353
void onLoop(Child* child) {
54-
nodeManager.sleepOrWait(_dht->getMinimumSamplingPeriod());
54+
nodeManager.sleepOrWait(_dht->getMinimumSamplingPeriod()+100);
5555
_dht->readSensor(true);
5656
// temperature sensor
5757
if (child->getType() == V_TEMP) {

0 commit comments

Comments
 (0)