void setup()
{
Serial.begin(9600); //Start the serial connection with the computer
}
void loop()
{
int reading = analogRead(A0); //read from the A0 pin
float voltage = reading * 5.0;
voltage /= 1024.0;
float temperatureC = (voltage - 0.5) * 100 ;
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0; //convert values to fahrenheit
Serial.print(temperatureF); Serial.println(" degrees F");
delay(1000);
}