sr501+BH1750+mq

Dependencies:   mbed

Fork of sensors by w mx

Revision:
3:31aec950f7dc
Parent:
2:cd0ea77c7d66
--- a/sensors.h	Thu Sep 13 05:52:55 2018 +0000
+++ b/sensors.h	Fri Sep 14 10:52:15 2018 +0000
@@ -77,8 +77,27 @@
     bool operator==(const bool &target);
     float getairdata(); 
     void reset();
-    int mq::read();
+    int read();
 };
 
 //===========================================
+class dht11
+{
+/*****
+*
+*****/
+  private:
+    Timer timer;
+    Timer starttime;
+    DigitalInOut datapin;
+    float H;
+    float T;                                   
+  public:
+    dht11(PinName pin);
+    int getdata();  
+    float gethumidity();
+    float gettemperature();
+
+};
+//=======================
 #endif