Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use LM35 Temperature Sensor: Examples, Pinouts, and Specs

Image of LM35 Temperature Sensor
Cirkit Designer LogoDesign with LM35 Temperature Sensor in Cirkit Designer

Introduction

The LM35, manufactured by Texas Instruments (Part ID: LM35), is a precision temperature sensor that provides an output voltage linearly proportional to the temperature in degrees Celsius. Unlike thermistors, the LM35 does not require external calibration or trimming, making it a reliable and easy-to-use component for temperature measurement. Its low self-heating and high accuracy make it ideal for a wide range of applications.

Explore Projects Built with LM35 Temperature Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino UNO Based Temperature Monitoring with LM35 Sensor
Image of sattelite: A project utilizing LM35 Temperature Sensor in a practical application
This circuit is designed to measure temperature using an LM35 temperature sensor and display the readings in degrees Celsius. The sensor's output voltage is read by an Arduino UNO's analog input, which then converts the voltage to a temperature value. The Arduino is programmed to serially output the temperature data, which can be monitored in real-time.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based LM35 Temperature Sensor Monitoring System
Image of Measuring Temperature With LM35 and Arduino UNO: A project utilizing LM35 Temperature Sensor in a practical application
This circuit is designed to measure temperature using an LM35 temperature sensor interfaced with an Arduino UNO microcontroller. The sensor's output voltage, which is proportional to the temperature, is read by the Arduino's analog input A0. The embedded code on the Arduino processes this signal to calculate and output the temperature in both Celsius and Fahrenheit to the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and LM35 Temperature Sensor with Serial Monitoring
Image of : A project utilizing LM35 Temperature Sensor in a practical application
This circuit uses an Arduino UNO to read temperature data from an LM35 temperature sensor. The sensor's output is connected to the Arduino's analog input pin A0, and the Arduino processes this data to calculate and display the temperature in Celsius on the Serial Monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Based Temperature Monitoring System
Image of temps: A project utilizing LM35 Temperature Sensor in a practical application
This circuit is designed to measure temperature using an LM35 temperature sensor interfaced with an Arduino UNO microcontroller. The sensor's output voltage, which is proportional to the temperature, is fed into the Arduino's analog input A1 for processing. The Arduino is powered by 5V and shares a common ground with the sensor, setting up the basic framework for temperature data acquisition.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with LM35 Temperature Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of sattelite: A project utilizing LM35 Temperature Sensor in a practical application
Arduino UNO Based Temperature Monitoring with LM35 Sensor
This circuit is designed to measure temperature using an LM35 temperature sensor and display the readings in degrees Celsius. The sensor's output voltage is read by an Arduino UNO's analog input, which then converts the voltage to a temperature value. The Arduino is programmed to serially output the temperature data, which can be monitored in real-time.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Measuring Temperature With LM35 and Arduino UNO: A project utilizing LM35 Temperature Sensor in a practical application
Arduino UNO Based LM35 Temperature Sensor Monitoring System
This circuit is designed to measure temperature using an LM35 temperature sensor interfaced with an Arduino UNO microcontroller. The sensor's output voltage, which is proportional to the temperature, is read by the Arduino's analog input A0. The embedded code on the Arduino processes this signal to calculate and output the temperature in both Celsius and Fahrenheit to the serial monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of : A project utilizing LM35 Temperature Sensor in a practical application
Arduino UNO and LM35 Temperature Sensor with Serial Monitoring
This circuit uses an Arduino UNO to read temperature data from an LM35 temperature sensor. The sensor's output is connected to the Arduino's analog input pin A0, and the Arduino processes this data to calculate and display the temperature in Celsius on the Serial Monitor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of temps: A project utilizing LM35 Temperature Sensor in a practical application
Arduino UNO Based Temperature Monitoring System
This circuit is designed to measure temperature using an LM35 temperature sensor interfaced with an Arduino UNO microcontroller. The sensor's output voltage, which is proportional to the temperature, is fed into the Arduino's analog input A1 for processing. The Arduino is powered by 5V and shares a common ground with the sensor, setting up the basic framework for temperature data acquisition.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • HVAC systems for temperature monitoring and control
  • Industrial process monitoring
  • Weather stations
  • Consumer electronics (e.g., thermostats, appliances)
  • Medical devices for temperature sensing

Technical Specifications

The LM35 is designed for precision temperature sensing with minimal external components. Below are its key technical details:

Key Specifications

Parameter Value
Supply Voltage (Vcc) 4V to 30V
Output Voltage Range 0V to +1.5V (for 0°C to +150°C)
Temperature Range -55°C to +150°C
Accuracy ±0.5°C (at 25°C)
Output Sensitivity 10mV/°C
Current Consumption 60 µA (typical)
Self-Heating 0.08°C (in still air)
Package Options TO-92, SOIC-8, TO-220

Pin Configuration

The LM35 is available in a 3-pin package. Below is the pinout for the TO-92 package, which is the most commonly used form factor.

Pin Number Pin Name Description
1 Vcc Positive supply voltage (4V to 30V)
2 Vout Analog output voltage proportional to temperature
3 GND Ground (0V reference)

Usage Instructions

The LM35 is straightforward to use in a circuit. It outputs an analog voltage that is directly proportional to the temperature in degrees Celsius, with a scale factor of 10mV/°C. For example, at 25°C, the output voltage will be 250mV.

Connecting the LM35

  1. Power Supply: Connect the Vcc pin to a stable DC voltage source (4V to 30V).
  2. Ground: Connect the GND pin to the ground of the circuit.
  3. Output: Connect the Vout pin to an analog input pin of a microcontroller or an ADC (Analog-to-Digital Converter) for temperature measurement.

Important Considerations

  • Use a decoupling capacitor (e.g., 0.1 µF) between Vcc and GND to reduce noise.
  • Avoid long wires for the output pin to minimize signal degradation.
  • If measuring negative temperatures, connect a pull-down resistor (e.g., 10kΩ) between the output pin and ground.

Example: Interfacing LM35 with Arduino UNO

Below is an example of how to connect and read temperature data from the LM35 using an Arduino UNO.

Circuit Diagram

  • Vcc: Connect to Arduino's 5V pin.
  • GND: Connect to Arduino's GND pin.
  • Vout: Connect to Arduino's analog input pin (e.g., A0).

Arduino Code

// LM35 Temperature Sensor Example with Arduino UNO
// Reads temperature in Celsius and prints it to the Serial Monitor

const int sensorPin = A0; // Analog pin connected to LM35 Vout
float temperatureC;       // Variable to store temperature in Celsius

void setup() {
  Serial.begin(9600); // Initialize serial communication at 9600 baud
}

void loop() {
  int sensorValue = analogRead(sensorPin); // Read analog value from LM35
  float voltage = sensorValue * (5.0 / 1023.0); // Convert ADC value to voltage
  temperatureC = voltage * 100.0; // Convert voltage to temperature (10mV/°C)

  // Print temperature to Serial Monitor
  Serial.print("Temperature: ");
  Serial.print(temperatureC);
  Serial.println(" °C");

  delay(1000); // Wait 1 second before next reading
}

Best Practices

  • Place the LM35 in a location with good airflow for accurate readings.
  • Avoid exposing the sensor to extreme conditions (e.g., high humidity, corrosive environments) without proper protection.
  • Use proper shielding for long-distance connections to reduce noise interference.

Troubleshooting and FAQs

Common Issues and Solutions

Issue Possible Cause Solution
No output voltage Incorrect wiring Verify connections to Vcc, GND, and Vout.
Fluctuating readings Electrical noise Add a decoupling capacitor (0.1 µF).
Incorrect temperature readings Calibration error or ADC issue Check ADC reference voltage and scaling.
Overheating sensor Excessive current draw Ensure supply voltage is within range.

FAQs

Q1: Can the LM35 measure negative temperatures?
A1: Yes, but the output voltage will drop below 0V for negative temperatures. To measure negative temperatures, use a negative voltage supply or a pull-down resistor to shift the output voltage.

Q2: What is the maximum distance between the LM35 and the microcontroller?
A2: The LM35 can be placed several meters away, but long wires may introduce noise. Use shielded cables or an op-amp buffer for long-distance connections.

Q3: Can the LM35 be powered with 3.3V?
A3: The LM35 requires a minimum supply voltage of 4V. For 3.3V systems, consider using a level shifter or a different sensor compatible with 3.3V.

Q4: How do I improve accuracy in noisy environments?
A4: Use a low-pass filter (e.g., RC filter) on the output pin and ensure proper grounding to reduce noise.

By following this documentation, users can effectively integrate the LM35 temperature sensor into their projects for accurate and reliable temperature measurements.