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. ›How to Choose a Temperature Sensor for Arduino and ESP32

Buying guide · Beginner · 3 min read

How to Choose a Temperature Sensor for Arduino and ESP32

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerComparisonQuestions that decide itGetting accurate readingsTry itCommon mistakesFAQsParts and next steps
Short answer

Pick a temperature sensor by range, environment and interface. For room temperature and humidity, a DHT22 or BME280 is easiest. For water, soil or several points on one wire, use the waterproof DS18B20. Above 125 °C, such as ovens or kilns, use a K-type thermocouple with a MAX6675 or MAX31855. To measure a surface without touching it, use an MLX90614 infrared sensor.

Key specs at a glance

DHT22
−40 to 80 °C, ±0.5 °C, plus humidity
DS18B20
−55 to 125 °C, ±0.5 °C, 1-Wire, waterproof probes
LM35 / TMP36
Analog, 10 mV per °C
NTC thermistor
Cheap, analog, needs a divider and a formula
K-type thermocouple
Up to about 1000 °C with a MAX6675 or MAX31855
MLX90614
Non-contact IR, object −70 to 380 °C
01

Comparison

SensorRangeAccuracyInterfaceBest for
DHT110 to 50 °C±2 °CSingle-wireCheapest classroom demos
DHT22 / AM2302−40 to 80 °C±0.5 °CSingle-wireRoom temperature and humidity
BME280−40 to 85 °C±1 °CI2C / SPIWeather stations with pressure
DS18B20−55 to 125 °C±0.5 °C1-WireWater, soil, freezers, many probes
LM35−55 to 150 °C±0.5 °C at 25 °CAnalogSimple analog readings at 5 V
TMP36−40 to 125 °C±2 °CAnalog3.3 V boards
NTC 10k thermistor−40 to 125 °CDepends on calibrationAnalog divider3D printers, low cost
Thermocouple + MAX66750 to 1024 °C±2 to 3 °CSPIOvens, kilns, reflow
MLX90614−70 to 380 °C (object)±0.5 °C near room temperatureI2CNon-contact surfaces
DHT11
Range:
0 to 50 °C
Accuracy:
±2 °C
Interface:
Single-wire
Best for:
Cheapest classroom demos
DHT22 / AM2302
Range:
−40 to 80 °C
Accuracy:
±0.5 °C
Interface:
Single-wire
Best for:
Room temperature and humidity
BME280
Range:
−40 to 85 °C
Accuracy:
±1 °C
Interface:
I2C / SPI
Best for:
Weather stations with pressure
DS18B20
Range:
−55 to 125 °C
Accuracy:
±0.5 °C
Interface:
1-Wire
Best for:
Water, soil, freezers, many probes
LM35
Range:
−55 to 150 °C
Accuracy:
±0.5 °C at 25 °C
Interface:
Analog
Best for:
Simple analog readings at 5 V
TMP36
Range:
−40 to 125 °C
Accuracy:
±2 °C
Interface:
Analog
Best for:
3.3 V boards
NTC 10k thermistor
Range:
−40 to 125 °C
Accuracy:
Depends on calibration
Interface:
Analog divider
Best for:
3D printers, low cost
Thermocouple + MAX6675
Range:
0 to 1024 °C
Accuracy:
±2 to 3 °C
Interface:
SPI
Best for:
Ovens, kilns, reflow
MLX90614
Range:
−70 to 380 °C (object)
Accuracy:
±0.5 °C near room temperature
Interface:
I2C
Best for:
Non-contact surfaces
02

Questions that decide it

  1. 1
    Does it get wet? Choose a stainless-steel DS18B20 probe.
  2. 2
    Do you also need humidity? Choose a DHT22 or DHT11, or a BME280.
  3. 3
    Over 125 °C? Choose a thermocouple and amplifier.
  4. 4
    Cannot touch the object? Choose an MLX90614 IR sensor, and remember shiny metal reads low.
  5. 5
    Many points? DS18B20s share one pin.
  6. 6
    3.3 V board? Avoid the LM35, which needs at least 4 V; use a TMP36 or a digital sensor.
03

Getting accurate readings

Keep sensors away from regulators, the microcontroller and sunlight, all of which add heat. Digital sensors avoid ADC noise; with analog sensors, average several readings and use a stable reference (see ADC basics). Check two sensors side by side in a glass of ice water (0 °C) to spot an outlier, and apply a simple offset in code if needed.

04

Try it: ADC resolution calculator

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

05

Common mistakes to avoid

  • !Running an LM35 from 3.3 V.
  • !Mounting the sensor next to a hot regulator.
  • !Using a DHT11 where ±2 °C is not good enough.
  • !Trusting MLX90614 readings on shiny metal.
  • !Feeding a thermocouple straight into an analog pin.
06

Frequently asked questions

What is the most accurate temperature sensor for Arduino?

Among common modules, the DS18B20 and DHT22 offer about ±0.5 °C; the SHT3x and similar parts can do better.

Which temperature sensor is waterproof?

The DS18B20 in a stainless-steel probe with a sealed cable.

How do I measure high temperatures with Arduino?

Use a K-type thermocouple with a MAX6675 or MAX31855 amplifier, which reads up to about 1000 °C over SPI.

Can I measure body temperature with these sensors?

An MLX90614 can show a skin reading for learning, but hobby modules are not medical thermometers.

LM35 or TMP36?

LM35 for 5 V boards; TMP36 for 3.3 V boards, as it works down to 2.7 V.

Parts for this guide

  • Bosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI
    ₹1,089View
  • ENS160+AHT21 Air Quality, Temperature & Humidity Sensor Module – I2C Interface
    ₹779View
Shop Gas & Weather Sensors

Calculators

ADC resolution calculatorVoltage divider calculator

Terms in this guide

1-WireA bus that carries data and timing on a single wire plus ground, with each device identified by a unique 64-bit address. Used by the DS18B20 temperature sensor.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.Relative humidityThe amount of water vapour in air as a percentage of the maximum it can hold at that temperature.

Projects that use it

Put this into practice: 167 step-by-step builds in our project library use parts from this guide.

Beginner · 1–2 hoursTemperature-controlled fanView projectIntermediate · 2 hoursGreenhouse humidity controllerView projectBeginner · 1–2 hoursMini weather station with OLEDView project
Browse all 167 projects

Keep learning

Component guideBeginnerDS18B20 Waterproof Temperature SensorThe DS18B20 is a digital temperature sensor that talks over a single data wire called 1-Wire.3 min read · SensorsComparisonBeginnerDHT11 vs DHT22DHT11 vs DHT22 compared: accuracy, range and sampling rate, plus wiring, pull-up, Arduino/ESP32 code and when to pick a BME280 or SHT31.3 min read · SensorsComparisonBeginnerBME280 vs BMP280The BMP280 measures temperature and air pressure; the BME280 adds relative humidity.3 min read · SensorsConcept explainerBeginnerADCs ExplainedAn analog-to-digital converter (ADC) measures a voltage and returns a number.4 min read · Electronics FundamentalsComparisonBeginnerVoltage RegulatorsA voltage regulator holds its output steady, such as 5 V or 3.3 V, while the input varies.4 min read · Power & Batteries

Sources

  • Analog Devices DS18B20, MAX6675 and MAX31855 datasheets
  • Texas Instruments LM35 datasheet
  • Analog Devices TMP36 datasheet
  • Melexis MLX90614 datasheet
  • Aosong AM2302 (DHT22) datasheet

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

On this page
Short answerComparisonQuestions that decide itGetting accurate readingsTry 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 guide2 items · ₹1,868

Bosch BME680 4-in-1 Environmental Sensor Module – Temperature, Humidity, Pressure, Gas (VOC), I²C/SPI · ENS160+AHT21 Air Quality, Temperature & Humidity Sensor Module – I2C Interface

Ask the Community

Ask a question