How to Use a 10k Thermistor Temperature Sensor with Arduino

Introduction

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.

Components Required

Before starting, gather the following components:

  1. Arduino Uno (or any other Arduino board) — Rs 1,200 (the UNO comes with a USB cable)
  2. 10k Thermistor (NTC type) — available on order, message us on WhatsApp
  3. 10k Ohm Resistor (for voltage divider) — available on order, message us on WhatsApp
  4. Breadboard & Jumper Wires (for connections) — MB102 Rs 250, wires Rs 180
  5. USB Cable (for uploading code — included with the Arduino UNO)
  6. Computer with Arduino IDE Installed

These components are easily available in Hall Road, Lahore, or online at QKZEE Technologies.

Understanding the 10k Thermistor

A thermistor is a type of resistor whose resistance changes with temperature. There are two types:

  • NTC (Negative Temperature Coefficient): Resistance decreases as temperature increases.
  • PTC (Positive Temperature Coefficient): Resistance increases as temperature increases.

For this project, we use an NTC 10k thermistor, which has a resistance of 10k ohms at 25°C.

10k NTC thermistor used in Arduino temperature sensing projects

Circuit Diagram & Connections

To measure temperature, we'll create a voltage divider circuit using the 10k thermistor and a 10k resistor.

Step-by-Step Wiring

  1. Connect one leg of the thermistor to 5V on Arduino.
  2. Connect the other leg to Analog Pin A0 and also to a 10k resistor.
  3. Connect the other end of the 10k resistor to GND.

This setup allows the Arduino to read voltage changes caused by temperature variations.

Arduino Uno with 10k thermistor temperature sensor circuit wiring diagram for student projects blog qkzee

Arduino Code for Temperature Measurement

The Arduino will read the analog voltage from the thermistor and convert it into temperature using the Steinhart-Hart equation.

Upload the Following Code:

// 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
}

Explanation of the Code:

  1. analogRead() – Reads voltage from the thermistor.
  2. Resistance Calculation – Converts analog value to resistance.
  3. Steinhart-Hart Equation – Accurately converts resistance to temperature.
  4. Serial Monitor Output – Displays temperature in °C and °F.

Testing & Calibration

After uploading the code, open the Serial Monitor (Ctrl + Shift + M) to see temperature readings. For better accuracy:

  • Use a multimeter to verify thermistor resistance at known temperatures.
  • Adjust the Steinhart-Hart coefficients if needed.

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.

Applications of Thermistor with Arduino

  1. Home Automation – Smart thermostats, AC control.
  2. Industrial Monitoring – Machine temperature tracking.
  3. Science Projects – Environmental studies.
  4. University Projects – Ideal for engineering students.

Conclusion – Why This Project Works

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.

Where to Buy the Parts

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.

Still Stuck?

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.

WhatsApp Us YouTube

FAQs

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.

Conclusion

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.