

The LM35 is a precision temperature sensor that provides an output voltage proportional to the temperature in Celsius. Unlike thermistors, the LM35 does not require any external calibration or trimming, making it highly accurate and easy to use. It operates linearly, with an output of 10 mV per degree Celsius, and is designed to measure temperatures ranging from -55°C to +150°C.








The LM35 is a versatile and reliable temperature sensor. Below are its key technical details:
| Parameter | Value |
|---|---|
| Supply Voltage (Vcc) | 4V to 30V |
| Output Voltage Range | 0V to 1.5V (for -55°C to +150°C) |
| Temperature Range | -55°C to +150°C |
| Accuracy | ±0.5°C (at 25°C) |
| Output Sensitivity | 10 mV/°C |
| Current Consumption | 60 µA (typical) |
| Response Time | 1 second (typical) |
The LM35 has three pins, as shown in the table below:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | Vcc | Power supply (4V to 30V) |
| 2 | Vout | Analog output voltage proportional to temperature |
| 3 | GND | Ground (0V reference) |
Below is a simple connection diagram for the LM35 with an Arduino UNO:
LM35 Pin 1 (Vcc) -> Arduino 5V
LM35 Pin 2 (Vout) -> Arduino A0
LM35 Pin 3 (GND) -> Arduino GND
Here is an example of how to read temperature data from the LM35 using an Arduino UNO:
// Define the analog pin connected to the LM35 sensor
const int sensorPin = A0;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value from LM35
float voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
float temperature = voltage * 100.0; // Convert voltage to temperature in Celsius
// Print the temperature to the Serial Monitor
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000); // Wait for 1 second before the next reading
}
No Output Voltage:
Inaccurate Temperature Readings:
Fluctuating Output:
Q: Can the LM35 measure negative temperatures?
A: Yes, the LM35 can measure temperatures as low as -55°C. However, for negative temperatures, the output voltage will be below 0V, so additional circuitry (e.g., an op-amp) may be required to read the values.
Q: Can I use the LM35 with a 3.3V microcontroller?
A: Yes, but the output voltage range will be limited. Ensure the microcontroller's ADC can accurately read the reduced voltage range.
Q: How do I improve the accuracy of the LM35?
A: Use a stable power supply, minimize noise in the circuit, and ensure proper thermal contact between the sensor and the measured surface.
By following this documentation, you can effectively integrate the LM35 temperature sensor into your projects for accurate and reliable temperature measurements.