Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›NTC Thermistors

Component guide · Beginner · 3 min read

NTC Thermistors

How to Read Temperature With an Arduino or ESP32

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerHow an NTC thermistor worksReading it with a voltage dividerArduino code with the beta equationBeta equation or Steinhart-HartCommon sources of errorTry itCommon mistakesFAQsParts and next steps
Short answer

An NTC thermistor is a resistor whose resistance falls as it gets hotter. Put it in a voltage divider with a fixed resistor equal to its nominal value, read the voltage with an ADC, and convert resistance to temperature using the beta equation. A 10 kΩ, B3950 thermistor is the common hobby choice and the one on most 3D printers.

Key specs at a glance

Nominal resistance
R25, the resistance at 25 °C, for example 10 kΩ
Beta value
Often 3435, 3950 or 4050 K; sets the curve
Tolerance
1 % or 5 %, with the B value tolerance too
Range
Typically -40 to +125 °C, higher for glass types
Output
Resistance, so you need a divider and ADC
Typical accuracy
About ±1 °C with calibration near the mid-range
01

How an NTC thermistor works

NTC stands for negative temperature coefficient: resistance drops as the temperature rises. The change is steep, so even a small thermistor gives a big signal, but the curve is not a straight line. That is why the reading must be converted with an equation instead of a simple scale.

Common types are epoxy bead (small and fast), glass-encapsulated (high temperature, used in 3D printer hotends) and disc (power inrush limiting). Probes with a stainless sleeve suit liquids and pipes.

02

Reading it with a voltage divider

Connect the thermistor and a fixed resistor in series across the supply, and read the middle point with the ADC. Use a fixed resistor equal to the thermistor's nominal value so the output is mid-scale near 25 °C.

For an ESP32 or Arduino, use the same reference for the divider and the ADC, and add a 100 nF capacitor across the ADC input to cut noise. See voltage dividers and ADC basics.

03

Arduino code with the beta equation

This sketch uses a 10 kΩ NTC with B = 3950 K, wired as thermistor to ground and a 10 kΩ resistor to 5 V, with the junction on A0.

NTC 10k B3950 on Arduino · Arduino C++Verify & upload in Electrolark
const float R_FIXED = 10000.0;   // fixed resistor, ohms
const float R0 = 10000.0;        // thermistor at 25 C
const float T0 = 298.15;         // 25 C in kelvin
const float BETA = 3950.0;

void setup() { Serial.begin(115200); }

void loop() {
  int adc = analogRead(A0);                          // 0..1023
  float r = R_FIXED * adc / (1023.0 - adc);          // thermistor to ground
  float tK = 1.0 / (1.0 / T0 + log(r / R0) / BETA);
  Serial.println(tK - 273.15);                       // degrees C
  delay(500);
}
04

Beta equation or Steinhart-Hart

The beta equation is accurate to about a degree near 25 °C and drifts at the ends. For a wider range, use the Steinhart-Hart equation with three coefficients from the datasheet, or a lookup table supplied by the maker. The NTC thermistor calculator converts resistance to temperature for any beta value.

05

Common sources of error

Self-heating

the current through the thermistor warms it. Keep the divider current low, around 100 µA or less.

ADC noise and non-linearity

average several readings and use a stable reference.

Long cables

add a small capacitor and use twisted pair.

Wrong beta value

a B3950 curve applied to a B3435 part gives errors of several degrees.

06

Try it: Ntc thermistor calculator

Change the values and the diagram and results update as you type.

07

Common mistakes to avoid

  • !Using a linear scale instead of the beta equation.
  • !Choosing a fixed resistor far from the thermistor value and losing resolution.
  • !Using the wrong beta value from a different datasheet.
  • !Placing the thermistor so it cannot touch the thing it measures.
  • !Driving too much current through it and self-heating the reading.
08

Frequently asked questions

What does 10k B3950 mean?

10 kΩ at 25 °C with a beta value of 3950 K.

NTC or PTC?

NTC resistance falls with temperature and is used for sensing. PTC resistance rises and is used for protection such as resettable fuses.

Is a thermistor better than a DS18B20?

A DS18B20 is easier and digital. A thermistor is cheaper, faster and handles higher temperatures in a small probe, but you must convert the value yourself.

Can I use a 3D printer thermistor with Arduino?

Yes. Most use 100 kΩ at 25 °C, so use a 100 kΩ fixed resistor and set R0 to 100000.

Why does my reading jump?

Noise on the ADC input. Add a capacitor at the pin and average several samples.

Parts for this guide

  • HaiWang MF58 10K 3950 1% NTC Thermistor Temperature Sensor
    ₹29View
  • B3950 10K NTC Thermistor Temperature Sensor 5x25mm Stainless Steel Probe with XH2.54 Connector & 4 Meter Cable
    ₹108View
  • TE Connectivity GA10K4A1A NTC Thermistor, Bead, BetaCURVE Chip, 10 kΩ
    ₹1,039View
  • Seeed Studio Grove Temperature Sensor v1.2 – NTC Thermistor Module w/ Grove Cable
    ₹339View
Shop Temperature & Thermal Sensors

Calculators

Ntc thermistor calculatorVoltage divider calculatorAdc resolution calculator

Terms in this guide

Beta (B) valueA constant that describes how steeply an NTC thermistor's resistance falls as temperature rises, quoted in kelvin (for example 3950 K). Used in the simple beta equation.Steinhart-Hart equationA three-term equation that converts an NTC thermistor's resistance to temperature more accurately than the beta equation over a wide range.Voltage dividerTwo resistors in series that output a fixed fraction of the input voltage.ADCAnalog-to-digital converter: turns a voltage into a number. A 10-bit ADC gives 0 to 1023; a 12-bit ADC gives 0 to 4095.CalibrationMeasuring a sensor against known conditions so its raw numbers can be converted into meaningful values, such as dry and wet readings for a soil sensor.ResolutionThe smallest step a measurement or output can represent. A 12-bit ADC on 3.3 V has steps of about 0.8 mV.

Projects that use it

Put this into practice: 1 step-by-step build in our project library uses parts from this guide.

Intermediate · 3 hoursWarm box for dough and yoghurt with a PTC heater and a safety cut-outView project
Browse all 1 project

Keep learning

Buying guideBeginnerHow to Choose a Temperature Sensor for Arduino and ESP32Compare temperature sensors for Arduino and ESP32: DHT22, DS18B20, BME280, LM35, TMP36, NTC thermistors, K-type thermocouples and the MLX90614 IR sensor.3 min read · SensorsComponent guideBeginnerDS18B20 Waterproof Temperature SensorThe DS18B20 is a digital temperature sensor that talks over a single data wire called 1-Wire.3 min read · SensorsConcept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics FundamentalsComponent guideIntermediate3D Printer Hotends and Extruders ExplainedThe extruder grips the filament with a gear and pushes it; the hotend melts it and forces it through the nozzle.3 min read · 3D PrintingComparisonBeginnerTemperature Sensor ICsCompare analog LM35 and TMP36 with digital MCP9808 and TMP117 temperature sensors: accuracy, voltage, wiring, formulas and Arduino and ESP32 code.3 min read · Sensors

Sources

  • TE Connectivity thermistor data sheets
  • Steinhart and Hart (1968), Deep-Sea Research, thermistor calibration equation

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerHow an NTC thermistor worksReading it with a voltage dividerArduino code with the beta equationBeta equation or Steinhart-HartCommon sources of errorTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide1 item · ₹17

Glass-sealed 100K Ohm NTC 3950 Thermistors 1%

Run itChange the inputs and watch the output
511analogRead(A0)
Serial monitor115200 baud
25.04

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question