Experiment 4 - Thermistor

In this experiment you will use a thermistor. A thermistor is an electrical resistor whose resistance is greatly reduced by heating.

Circuit

Wire up the experiment as shown in fig. 1

fig.1

The Code

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);
}