if you want the temperature in Celcius and i have the LM35, just use this code:
tempC = analogRead(tempPin);
tempC = (5.0 * tempC * 100.0)/1024.0;
and u'r pretty much all set, with the NTC/PTC u'll need to make a circuit and even then you wont be able to do anything nearly as simple as this code.