LM35 Precision Analog Temperature Sensor

Price range: 12,00 DH through 25,00 DH

SKU: 0131 Categories: ,

Description

LM35 Precision Analog Temperature Sensor

The LM35 is an analog temperature sensor calibrated in degrees Celsius. Its output voltage varies linearly with temperature, making it straightforward to read with an analog input.

Specifications

  • Measurement range: −55 °C to +150 °C
  • Accuracy: ±0.5 °C at 25 °C
  • Linear scale factor: +10 mV/°C
  • Self-heating: less than 0.1 °C in still air
  • Current consumption: less than 60 µA
  • Operating voltage: 4–30 V
  • Non-linearity: ±0.25 °C typical
  • Output impedance: 0.1 Ω at a 1 mA load

How it works

The LM35 converts temperature into a proportional voltage: the output is 0 V at 0 °C and increases by 10 mV for each degree Celsius.

Applications

  • Ambient temperature measurement
  • Thermal monitoring of components
  • Battery temperature management
  • HVAC (heating, ventilation and air conditioning)

Pinout

  • VCC: supply (typically +5 V)
  • VOUT: analog output proportional to temperature
  • GND: ground

Using the LM35 with Arduino Uno

Basic example
const int sensorPin = A0; // Broche où le LM35 est connecté
float temperature;


void setup() {
  Serial.begin(9600);
}


void loop() {
  int sensorValue = analogRead(sensorPin);
  temperature = sensorValue * (5.0 / 1024.0) * 100.0;
  Serial.print("Temperature: ");
  Serial.print(temperature);
  Serial.println(" C");
  delay(1000);
}
Advanced example: LCD temperature display
#include <Wire.h>
#include <LiquidCrystal_I2C.h>


const int sensorPin = A0; // Broche où le LM35 est connecté
float temperature;


LiquidCrystal_I2C lcd(0x27, 16, 2);


void setup() {
  lcd.begin();
  lcd.backlight();
  Serial.begin(9600);
}


void loop() {
  int sensorValue = analogRead(sensorPin);
  temperature = sensorValue * (5.0 / 1024.0) * 100.0;
  lcd.setCursor(0, 0);
  lcd.print("Temp: ");
  lcd.print(temperature);
  lcd.print(" C");
  delay(1000);
}
Advanced example connections
  • LM35 VCC: Arduino 5 V
  • LM35 VOUT: Arduino A0
  • LM35 GND: Arduino GND
  • LCD VCC/GND: Arduino 5 V/GND
  • LCD SDA/SCL: Arduino A4/A5
  • The source example also specifies a 10 kΩ resistor between LM35 VOUT and GND; confirm this circuit detail against the sensor datasheet before wiring.

Library installation

The advanced LCD example requires LiquidCrystal_I2C. In the Arduino IDE, open Sketch → Include Library → Manage Libraries, search for the library, and install it.

Datasheet: LM35 — Texas Instruments.

Keywords: LM35, analog temperature sensor, Arduino temperature measurement, temperature sensor tutorial.

Additional information

Marque

Generic, National Semiconductor

Thank you for your loyalty!

EN