Thermistors are widely used in temperature-sensing applications, especially in Arduino projects, student projects, and final year projects. A 10k thermistor is a cost-effective and reliable sensor for measuring temperature, making it ideal for science projects, engineering projects, and automation tasks.
In this guide, we will explain how to interface a 10k thermistor with Arduino, calculate temperature using the Steinhart-Hart equation, and display readings on the Serial Monitor. Whether you're a student, hobbyist, or professional, this tutorial will help you build a functional temperature monitoring system.
Before starting, gather the following components:
These components are easily available in Hall Road, Lahore, or online at QKZEE Technologies.
A thermistor is a type of resistor whose resistance changes with temperature. There are two types:
For this project, we use an NTC 10k thermistor, which has a resistance of 10k ohms at 25°C.

To measure temperature, we'll create a voltage divider circuit using the 10k thermistor and a 10k resistor.
This setup allows the Arduino to read voltage changes caused by temperature variations.

The Arduino will read the analog voltage from the thermistor and convert it into temperature using the Steinhart-Hart equation.
// Define the analog pin for thermistor
const int thermistorPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication
}
void loop() {
// Read analog value from thermistor
int thermistorValue = analogRead(thermistorPin);
// Convert analog value to resistance
float resistance = 10000.0 * (1023.0 / thermistorValue - 1.0);
// Steinhart-Hart equation for temperature calculation
float temperatureK = 1 / (0.001129148 + (0.000234125 * log(resistance)) + (0.0000000876741 * pow(log(resistance), 3)));
float temperatureC = temperatureK - 273.15; // Convert Kelvin to Celsius
float temperatureF = (temperatureC * 9.0 / 5.0) + 32.0; // Convert Celsius to Fahrenheit
// Display readings on Serial Monitor
Serial.print("Temperature: ");
Serial.print(temperatureC);
Serial.print("°C | ");
Serial.print(temperatureF);
Serial.println("°F");
delay(1000); // Wait for 1 second
}
After uploading the code, open the Serial Monitor (Ctrl + Shift + M) to see temperature readings. For better accuracy:
This project is perfect for FYP projects in Lahore, engineering students, and automation enthusiasts.
For high-temperature measurements (above 100°C), a thermistor is not the right sensor — see our MAX6675 thermocouple guide, which measures 0°C to 1024°C with the same Arduino.
Using a 10k thermistor with Arduino is a simple yet powerful way to measure temperature for student projects, final year projects, and automation systems. This guide provides a complete solution, from wiring to coding, making it easy for beginners and professionals.
For a sensor that gives you temperature directly in °C without any calculation, see our LM35 temperature sensor guide — it outputs 10mV per °C and needs no voltage divider.
The Arduino UNO R3 DIP (Rs 1,200, USB cable included), MB102 breadboard (Rs 250) and jumper wires (Rs 180) are available at QKZEE Technologies, Shop 20, 1st Floor, Al-Khalil Center, Hall Road, Lahore, and online at qkzeetech.com with delivery all over Pakistan — see the links above. The 10k NTC thermistor and the 10kΩ resistor are available on order — message us on WhatsApp and we will arrange them for you.
If the Serial Monitor shows 0°C or a fixed reading that never changes, message us — tell us what the Serial Monitor shows, whether the thermistor leg is on 5V and the 10k resistor is on GND, and whether A0 is wired to the junction between them, and we will help you find the fault.
Why does the Serial Monitor show a fixed temperature that never changes?
Check the wiring — the most common mistake is wiring both legs of the thermistor to the same rail, or the 10k resistor to the wrong rail. A0 must be at the junction between the thermistor and the 10k resistor: thermistor to 5V, resistor to GND, A0 in the middle.
Why does the temperature read far too high or too low?
Check that you used a 10kΩ resistor in the divider (not 1k or 100k) and that the Steinhart-Hart coefficients in the code match a 10k NTC thermistor. A wrong resistor value shifts every reading.
Why does the code give "nan" or a negative temperature?
That usually means analogRead returned 0 (no voltage on A0 — check the A0 wire) or the thermistor is not connected. If the reading is "nan", the resistance calculation divided by zero — check the wiring first, then the code.
Can I use a 100k thermistor instead of a 10k one?
Yes, but you must change two things: use a 100kΩ resistor in the divider (matching the thermistor), and change the Steinhart-Hart coefficients to the ones for your 100k thermistor (from its datasheet). The code as written is for a 10k NTC.
Do I need to calibrate the thermistor?
For most student projects, no — the Steinhart-Hart equation with the standard coefficients is accurate to about ±1°C. For better accuracy, measure the thermistor's resistance at a known temperature (for example, in ice water at 0°C) with a multimeter and adjust the coefficients.
Can a thermistor measure high temperatures like a furnace?
No — a thermistor is for low temperatures (roughly −40°C to +125°C). For a furnace or a 3D printer hotend, use a thermocouple with the MAX6675 instead.
A 10k thermistor with an Arduino is one of the cheapest temperature sensors you can build: two components, one voltage divider, and the Steinhart-Hart equation does the rest. Remember the three things that trip everyone up — the thermistor goes to 5V, the 10k resistor goes to GND, and A0 sits at the junction between them. That is the whole project, and it works.