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

Temperature

Supports temperature measurement.
All readings from this library are in 'celsius' but can be converted into 'fahrenheit'.
Example
Assuming your device is called 'myTemp' in Project Designer then:-
// Read the sensor and store values
myTemp.read();
 
// Get the last read value
TEMPERATURE_TYPE val = myTemp.getCelsius();
 
// Print it out
cout << "Temperature:" << val;

 

Project Designer supports the following devices

 

Valid XHTML 1.0 Transitional