Library for taking datasheet corrected relative humidity measurements with HIH-4030 humidity sensor
Embed:
(wiki syntax)
Show/hide line numbers
hih-4030.h
00001 #ifndef HIH4030_h 00002 #define HIH4030_h 00003 00004 #include "mbed.h" 00005 00006 class HIH4030{ 00007 00008 public: 00009 HIH4030(PinName vout); 00010 float ratioHumidity(); 00011 float sensorRH(); 00012 float trueSensorRH(float temperature); 00013 00014 private: 00015 AnalogIn vout_; 00016 float sample; 00017 float temperature; 00018 }; 00019 #endif
Generated on Wed Jul 13 2022 01:49:11 by 1.7.2