Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
HIH4030/HIH4030.cpp
- Committer:
- AlexAllen
- Date:
- 2012-03-07
- Revision:
- 0:feaa05d35ccf
File content as of revision 0:feaa05d35ccf:
#include "HIH4030.h"
#include "mbed.h"
float HIH4030::getH(float temp)
{
float sensHum, trueHum;
float vout = 3.3 * 2.0 * read();
float vsupply = 5.0;
sensHum = ( ( vout / vsupply ) + 0.16 ) / 0.0062;
trueHum = ( 1.0546 - 0.00216 * temp ) * sensHum;
return trueHum;
}