In this experiment you will use a thermistor. A thermistor is an electrical resistor whose resistance is greatly reduced by heating.
Wire up the experiment as shown in fig. 1
In the Arduino IDE, create a new sketch and enter the following code:
int sensorPin = A0;
int sensorValue = 0;
void setup() {
Serial.begin(9600);
pinMode(sensorPin, INPUT);
}
void loop() {
sensorValue = analogRead(sensorPin);
Serial.println(sensorValue);
delay(sensorValue);
}