Outputs humidity to the serial terminal.

Dependencies:   mbed

Revision:
0:a8fcc4098c24
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/HIH_4010.h	Tue Jun 23 18:40:14 2015 +0000
@@ -0,0 +1,23 @@
+
+
+#include "mbed.h"
+
+class HIH4010 {
+
+public:
+
+HIH4010(float dataPin, float supplyVoltage, float referenceVoltage);
+
+float getSensorRH();
+float getTrueRH(float temperature);
+float vout();
+
+private:
+float pin; /* IO pin connected to sensor's data pin */
+float vSupply; /* voltage supplying the humidity sensor */
+float slope; /* value may be calculated or factory calibrated */
+float zeroOffset; /* value may be calcualted or factory calibrated */
+float vRef; /* analog voltage reference, in volts */
+
+};
+