I recently bought a TMP36 temperature sensor from sparkfun https://www.sparkfun.com/products/10988 It outputs a analog voltage that can be used to figure out the temperature. What is the best way to use this accurately with varying voltages.
What is the best way to use this accurately with varying voltages.
What varying voltages? You should not be varying the voltage you supply to the TMP36.
You can use some special code on the Arduino to measure the analog reference voltage relative to the 1.1V internal reference. That would allow you to measure other voltages if your analog reference voltage is varying, for example if you are running your Arduino off an unregulated battery. Is that what you wanted?