DHT sensor LIB

Dependents:   DHT22tester LASS_LoRa_mbed TestingDHT22sensor_fork1 Test_sensor_DHT22

Fork of DHT by Wim De Roeve

Files at this revision

API Documentation at this revision

Comitter:
gert_lauritsen
Date:
Fri Feb 26 20:36:49 2016 +0000
Parent:
2:cd93a537b2e7
Commit message:
F?rste flanke ligger forkert

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r cd93a537b2e7 -r a106059dae56 DHT.cpp
--- a/DHT.cpp	Wed Feb 24 09:07:53 2016 +0000
+++ b/DHT.cpp	Fri Feb 26 20:36:49 2016 +0000
@@ -94,9 +94,9 @@
 
     DHT_io.output();
     DHT_io = 0;
-    wait_ms(18);
+    wait_ms(5);
     DHT_io = 1;
-    wait_us(40);
+    wait_us(20);
     DHT_io.input();
 
     retryCount = 0;
@@ -113,8 +113,8 @@
         return err;
     }
 
-    wait_us(80);
-
+    wait_us(80); //step 2 wait for High
+   
     for (i = 0; i < 5; i++) {
         for (j = 0; j < 8; j++) {