WebbotLib AVR libraryWebbotLib It just does it
WebbotLibThe LibrarySensorsHumidity


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:-
The sensor can then be read using:-
and then the humidity in percent will be in sensor.humidity.percent

Valid XHTML 1.0 Transitional