Components / Sensors / LM35 temperature sensor

LM35 temperature sensor

Analog sensor that outputs 10 mV per °C.

MeasuresTemperature
Range0 to 100 °C (LM35DZ)
Accuracy±0.5 °C at 25 °C
InterfaceAnalog, 10 mV per °C
SensorsReviewedMPN LM35DZUsed in 6 projects
LM35
In short

What is the LM35 temperature sensor and what is it used for?

Analog sensor that outputs 10 mV per °C. Makers use it for simple analog temperature.

How it works

The chip produces a voltage proportional to absolute temperature from transistor junctions, scaled to 10 mV per °C.

Key specifications

Sensor specValue
MeasuresTemperature
Range0 to 100 °C (LM35DZ)
Accuracy±0.5 °C at 25 °C
InterfaceAnalog, 10 mV per °C
Supply voltage4 to 30 V

Pinout

+Vs4 to 30 V (left pin, flat face towards you)
Vout10 mV per °C (middle)
GNDGround (right)

How to use it

Read Vout on an analog pin: on a 5 V Uno, °C = reading × 500 / 1024. Use analogReference(INTERNAL) for finer steps. It needs at least 4 V supply, so on 3.3 V boards use a TMP36 or a digital sensor. Long cables pick up noise: add a 100 nF capacitor at the ADC.

Applications

Alternatives

Buy at

Common questions

What is the LM35 temperature sensor used for?

In maker projects: simple analog temperature.

How does the LM35 temperature sensor work?

The chip produces a voltage proportional to absolute temperature from transistor junctions, scaled to 10 mV per °C.

What voltage does the LM35 temperature sensor need?

4 to 30 V.

How do I connect the LM35 temperature sensor to an Arduino or ESP32?

Analog, 10 mV per °C. Pins: +Vs (4 to 30 V (left pin, flat face towards you)), Vout (10 mV per °C (middle)), GND (Ground (right)).

What can I use instead of the LM35 temperature sensor?

TMP36 temperature sensor and DS18B20 Temperature Sensor.