WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

Phidget/Humidity.h

Phidget humidity sensor.
phidget humidity.jpg
This must be connected to an ADC pin. It may be defined using:
Phidget_Humidity sensor = MAKE_Phidget_Humidity(ADC0);
Where ADC0 is changed to be the required ADC input channel.
The sensor should be initialised in appInitHardware using:-
humidityInit(sensor);
The sensor can then be read using:-
humidityRead(sensor);
and then the humidity in percent will be in sensor.humidity.percent

Valid XHTML 1.0 Transitional