example for SHT25 humidity and temperature sensor

Dependencies:   mbed lib_SHT25

Revision:
0:885179b0efef
Child:
1:e13ad6081cb3
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 18 08:10:51 2018 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+#include "lib_SHT25.h"
+ 
+Serial pc(USBTX, USBRX);
+SHT25  sensor(p28, p27);
+
+int main()
+{
+    float temperature, humidity;
+    while(1)
+    {
+        sensor.getData(&temperature, &humidity);
+        pc.printf("\rtemperature = %6.2f%cC -|- humidity = %6.2f%%RH", temperature, 248, humidity);
+        wait(0.5);
+    }
+}
\ No newline at end of file