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. ›Temperature Sensor ICs

Comparison · Beginner · 3 min read

Temperature Sensor ICs

LM35, TMP36, TMP117 and MCP9808

By Geekobot Learning Team · Updated 29 Oct 2026

On this page
Short answerAnalog vs digitalReading an LM35 on an UnoTMP36 formulaWhy digital chips are better on 3.3 V boardsMeasurement tipsTry itCommon mistakesFAQsParts and next steps
Short answer

Temperature sensor ICs come in two kinds. Analog parts such as the LM35 and TMP36 output a voltage proportional to temperature: 10 mV per degree C. Digital parts such as the MCP9808 and TMP117 send an exact reading over I2C, with better accuracy and no ADC noise. Use digital chips on ESP32 boards, where the built-in ADC is poor, and analog chips for the simplest Arduino projects.

Key specs at a glance

LM35
10 mV/°C, 0 °C output 0 V (LM35D 0 to 100 °C), 4 to 30 V supply, ±0.5 °C at 25 °C
TMP36
10 mV/°C with 500 mV offset, so below zero works; 2.7 to 5.5 V supply, ±2 °C
MCP9808
I2C 0x18 to 0x1F, ±0.25 °C typical, 0.0625 °C resolution
TMP117
I2C, ±0.1 °C from -20 to 50 °C, 16-bit
LM75 / TMP102
I2C 0x48 to 0x4F, 0.5 to 0.0625 °C steps
Typical use
Room, enclosure and board temperature
01

Analog vs digital

Analog sensors are one wire to an analog pin; digital sensors are two wires to the I2C bus and need no ADC.

ChipOutputAccuracySupplyNotes
LM3510 mV/°C voltage±0.5 °C4 to 30 VNeeds 4 V or more on the basic version; cannot read below 0 °C without extra parts
TMP36500 mV + 10 mV/°C±2 °C2.7 to 5.5 VWorks at 3.3 V and reads negative temperatures
MCP9808I2C digital±0.25 °C2.7 to 5.5 VEight addresses; alert pin
TMP117I2C digital±0.1 °C1.8 to 5.5 VMedical-grade accuracy; low power
DS18B201-Wire digital±0.5 °C3 to 5.5 VWaterproof probes; see its own guide
LM35
Output:
10 mV/°C voltage
Accuracy:
±0.5 °C
Supply:
4 to 30 V
Notes:
Needs 4 V or more on the basic version; cannot read below 0 °C without extra parts
TMP36
Output:
500 mV + 10 mV/°C
Accuracy:
±2 °C
Supply:
2.7 to 5.5 V
Notes:
Works at 3.3 V and reads negative temperatures
MCP9808
Output:
I2C digital
Accuracy:
±0.25 °C
Supply:
2.7 to 5.5 V
Notes:
Eight addresses; alert pin
TMP117
Output:
I2C digital
Accuracy:
±0.1 °C
Supply:
1.8 to 5.5 V
Notes:
Medical-grade accuracy; low power
DS18B20
Output:
1-Wire digital
Accuracy:
±0.5 °C
Supply:
3 to 5.5 V
Notes:
Waterproof probes; see its own guide
02

Reading an LM35 on an Uno

The Uno's default 5 V reference gives only about 0.5 degree steps. Switching to the internal 1.1 V reference improves resolution to about 0.1 degree and covers 0 to 110 °C.

LM35 with the 1.1 V reference · Arduino C++Verify & upload in Electrolark
const int PIN = A0;

void setup() {
  Serial.begin(115200);
  analogReference(INTERNAL);       // 1.1 V on ATmega328 boards
  analogRead(PIN);                 // discard the first reading after changing reference
}

void loop() {
  long sum = 0;
  for (int i = 0; i < 16; i++) sum += analogRead(PIN);   // average out noise
  float volts = (sum / 16.0) * 1.1 / 1023.0;
  Serial.print(volts * 100.0);     // 10 mV per degree C
  Serial.println(" C");
  delay(500);
}
03

TMP36 formula

For the TMP36, remove the 500 mV offset first: temperature in °C = (voltage - 0.5) × 100. At 750 mV the reading is 25 °C. The TMP36 works from 3.3 V, so it suits ESP32 and Pico, though their ADCs are less linear than an Uno's. Keep the leads short and add a 0.1 µF capacitor across the supply.

04

Why digital chips are better on 3.3 V boards

The ESP32's ADC is noisy and non-linear. A digital chip such as the MCP9808 or TMP117 sidesteps that. They share the I2C bus with other sensors, return exact temperatures and allow alert interrupts. Libraries from Adafruit and SparkFun handle the register details.

05

Measurement tips

  • ✓Self-heating from a board or regulator can add several degrees. Mount the sensor away from heat sources.
  • ✓For surface temperature, press the chip against the surface with thermal paste.
  • ✓For liquids use a sealed probe such as the DS18B20; bare ICs must not be immersed.
  • ✓Allow a few minutes for the sensor to match the object.
06

Try it: Adc resolution calculator

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

07

Common mistakes to avoid

  • !Using the 5 V analog reference and wondering why readings jump by 0.5 °C.
  • !Powering an LM35 from 3.3 V and getting wrong values.
  • !Placing the sensor next to a regulator or motor.
  • !Forgetting TMP36's 500 mV offset.
  • !Immersing a bare chip in water.
08

Frequently asked questions

LM35 or TMP36?

TMP36 if you want 3.3 V operation or negative temperatures. LM35 is more accurate at 5 V.

Which temperature sensor is most accurate?

TMP117 is accurate to ±0.1 °C. MCP9808 is also excellent. DHT11 is around ±2 °C.

Can an ESP32 read an LM35?

Poorly. The ADC is noisy and the LM35 needs more supply voltage. Use a digital sensor.

What is the difference between a sensor IC and a module?

The IC is the bare chip. A module adds the pins, resistors and capacitors you need to wire it easily.

Do I need pull-ups on I2C sensors?

Most breakouts already include them.

How do I measure outdoor temperature?

Use a shielded, ventilated housing so sunlight does not heat the sensor.

Parts for this guide

  • Keyestudio LM35 Linear Temperature Sensor Module for Arduino
    ₹337View
  • UMW TMP36GRTZ SOT23-5 Temperature Sensor IC
    ₹33View
  • DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module
    ₹739View
  • UMW TMP102AIDRLR SOT-563 Digital Temperature Sensor IC
    ₹72View
Shop Temperature & Thermal Sensors

Calculators

Adc resolution calculator

Terms in this guide

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.VrefOn stepper drivers, the reference voltage that sets the coil current limit.I2CInter-Integrated Circuit: a two-wire bus (SDA and SCL) that connects many devices by address.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: 13 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourLM35 room thermometerView projectBeginner · 1 hourGeyser outlet pipe hot alarmView projectIntermediate · 2 hoursIce box temperature loggerView project
Browse all 13 projects

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 · 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 Fundamentals

Sources

  • Texas Instruments LM35, TMP36 (Analog Devices) and TMP117 datasheets
  • Microchip MCP9808 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 answerAnalog vs digitalReading an LM35 on an UnoTMP36 formulaWhy digital chips are better on 3.3 V boardsMeasurement tipsTry 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 guide4 items · ₹1,181

Keyestudio LM35 Linear Temperature Sensor Module for Arduino · UMW TMP36GRTZ SOT23-5 Temperature Sensor IC · DFRobot Fermion MCP9808 High Accuracy I2C Temperature Sensor Module · UMW TMP102AIDRLR SOT-563 Digital Temperature Sensor IC

Run itChange the inputs and watch the output
Serial monitor115200 baud
24.41 C

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