LM35 temperature sensor
Analog sensor that outputs 10 mV per °C.
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.
The chip produces a voltage proportional to absolute temperature from transistor junctions, scaled to 10 mV per °C.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Temperature |
| Range | 0 to 100 °C (LM35DZ) |
| Accuracy | ±0.5 °C at 25 °C |
| Interface | Analog, 10 mV per °C |
| Supply voltage | 4 to 30 V |
Pinout
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
Builds that use it
Alternatives
- TMP36 temperature sensorWorks from 2.7 V and reads below zero
- DS18B20 Temperature SensorDigital output
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.
