Hi Geezer,
The following is an example of arduino with temperature sensor.
You can refer to this link. arduino.cc/cgi-bin/yabb2/YaB … 1257341359
[code]
const int tempPin = A0; // Analog input pin that the potentiometer is attached to
int Temp = 0; // value output of analog
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
void loop() {
// read the analog in value:
Temp= analogRead(tempPin) * 45 / 1024;
// print the results to the serial monitor:
Serial.print("temperature = " );
Serial.println(Temp);
// wait 100 milliseconds before the next loop
// for the analog-to-digital converter to settle
// after the last reading:
delay(100);
}[/code]