How to Use a 10k Thermistor Temperature Sensor with Arduino – Complete Guide
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 looking for the best engineering service in Lahore, this tutorial will help you build a functional temperature monitoring system.
Components Required
Before starting, gather the following components:
Arduino Uno (or any other Arduino board)
10k Thermistor (NTC type)
10k Ohm Resistor (for voltage divider)
Breadboard & Jumper Wires (for connections)
USB Cable (for uploading code)
Computer with Arduino IDE Installed
These components are easily available in Hall Road Lahore or online stores like Qkzee Tech, Qkz Tech, and 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.

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
Connect one leg of the thermistor to 5V on Arduino.
Connect the other leg to Analog Pin A0 and also to a 10k resistor.
Connect the other end of the 10k resistor to GND.
This setup allows the Arduino to read voltage changes caused by temperature variations.

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:
analogRead() – Reads voltage from the thermistor.
Resistance Calculation – Converts analog value to resistance.
Steinhart-Hart Equation – Accurately converts resistance to temperature.
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.
Applications of Thermistor with Arduino
Home Automation – Smart thermostats, AC control.
Industrial Monitoring – Machine temperature tracking.
Science Projects – Environmental studies.
University Projects – Ideal for all universities of Pakistan.
Conclusion
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 components, visit Hall Road Lahore or check Qkzee Technologies, Qkz Tech, and Qasim Shahzad Lahore for reliable parts. Need help? Search for engineering service near me or best engineering service in Lahore for expert assistance.
Start building your temperature sensor today and explore more Arduino projects!
Where to Buy Your Electronics Components
Looking for affordable components for this Arduino project? Check out QKZee Technologies, an online shop in Lahore, Pakistan, offering the best components for students and DIY projects. Whether you’re looking for sensors, modules, or other electronics at a cheap price, they’ve got it all. Visit them at QKZeeTech.