hi to all!
i wish to know if any have some example of how to know the temperature in centigrades from this sensor:
i'm newbie and i don't have idea! also de wiring diagram :S ![]()
i found something than can be help.
this will be un void loop
void loop() Â Â Â Â Â Â Â Â Â Â // run over and over again
{
//getting the voltage reading from the temperature sensor
int reading = analogRead(sensorPin);
// converting that reading to voltage, for 3.3v arduino use 3.3
float voltage = reading * 5.0 / 1024;
// print out the voltage
Serial.print(voltage); Serial.println(" volts");
// now print out the temperature
float temperatureC = (voltage - 0.5) * 100 ; Â //converting from 10 mv per degree wit 500 mV offset
                       //to degrees ((volatge - 500mV) times 100)
Serial.print(temperatureC); Serial.println(" degress C");
// now convert to Fahrenheight
float temperatureF = (temperatureC * 9 / 5) + 32;
Serial.print(temperatureF); Serial.println(" degress F");
delay(1000); Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â //waiting a second
}
 //my code ends here.
 // you can have code that is time sensitive (e.g. using 'delay'), but
 // be aware that it will be affected by a short pause during connecting
 // to and reading from ethernet (approx. 0.5 to 1 sec).
 // e.g. this code should carry on flashing regularly, with brief pauses
 // every few seconds during Pachube update.
 digitalWrite(6, HIGH);
 delay(100);
 digitalWrite(6, LOW);
 delay(100);
}
thanks for your help