I have built the example on rentron.com

http://rentron.com/PicBasic/LM34.htm

Everything is working well except for the conversion I have vref set for 2.55 and the temp is displaying as 96 not 70 as exepcted (verified with voltmeter 0.702v)

I incresed the vref as attempt to see if that will help, with vref raised to 2.81 the conversion is as expected. I do not understand why this is not working.

My only difference from the example is I am using a 20mhz osc, and yes it is defined. I literaly cut and pasted the code from the site and changed the 4 to a 20.

Is there any way to possibly read in the voltage without a ref and do a conversion on it.

I am experimenting and looking for options.

Thanks in advance for your help and ideas.