DHT11 Temperature and humidity sensor using FRDM-K64f and Thingspeak

Dependencies:   DHT ESP8266 mbed

Revision:
1:402b14b56d24
Parent:
0:da7e87322045
Child:
2:9c7b37890692
--- a/main.cpp	Tue Nov 29 13:56:18 2016 +0000
+++ b/main.cpp	Tue Nov 29 14:01:15 2016 +0000
@@ -25,15 +25,14 @@
     pc.printf("Getting IP\r\n");    //get IP addresss from the connected AP
     wifi.GetIP(rcv);    //receive an IP address from the AP
     pc.printf("%s\n", rcv);
-    wait(5); // Delay 5 sec to give the pir time to get snapshut of the surrounding
     while (1) 
     {
         pc.printf("PLEASE STAY AWAY\r\n");
         pc.printf("Sending WiFi information\n");
         wifi_send();
-        RED=1; // when the motion detected turn of the on board red led
+        RED=1;
         wait(2.0f);
-        RED=1;
+        RED=0;
         wait(1.5f);
     }    
 }