SADA

Files at this revision

API Documentation at this revision

Comitter:
flozada
Date:
Sat Feb 15 16:40:35 2020 +0000
Parent:
5:cce2105f7365
Commit message:
TUTOTRIA FINAL_ SISTEMA DE SENSADO DE TEMPERATURA Y VIBRACIONES DE MOTOR

Changed in this revision

DHT.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/DHT.cpp	Sat Jan 07 22:26:26 2017 +0000
+++ b/DHT.cpp	Sat Feb 15 16:40:35 2020 +0000
@@ -156,6 +156,7 @@
             v /= 10;
             if (DHT_data[2] & 0x80)  // if first bit of DHT_data[2] is 1 then the temperature is negative.  
                 v *= -1;
+                v=v/28;
             return float(v);
     }
     return 0;