How to use
void setup()
{
Serial.begin(9600);
}
void loop()
{
a=analogRead(0);
resistance=(float)(1023-a)*10000/a;
temperature=1/(log(resistance/10000)/B+1/298.15)-273.15;
delay(del);
Serial.println(temperature);
}
You can copy and paste the lines above to add temperature capability to your own sketches.
After you have uploaded the sketch, open the serial monitor window in the Arduino IDE, and you should
be presented with a box similar to this: