The attached example reads an analog voltage using the ADC. It then scales the value to units of 10 mV, assuming a 5 V reference. This would correspond to absolute temperature in Kelvin, if you were using a sensor like the LM235. It then prints the resulting value to the serial port as ASCII text.
Wed Dec 9 2009, 23:46:47, download attachment serout.ld