0% found this document useful (0 votes)
91 views10 pages

LM35 Temperature Sensor Guide

The LM35 temperature sensor provides an output voltage linearly proportional to the Celsius temperature, with 10mV of output for every 1 degree Celsius change. It can measure temperatures from -55°C to 150°C and connects to an Arduino to read the voltage output and convert it to a temperature reading displayed in Celsius degrees. The Arduino code samples the sensor voltage, converts it to millivolts, and divides by 10 to calculate and print the temperature to the serial monitor every second.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views10 pages

LM35 Temperature Sensor Guide

The LM35 temperature sensor provides an output voltage linearly proportional to the Celsius temperature, with 10mV of output for every 1 degree Celsius change. It can measure temperatures from -55°C to 150°C and connects to an Arduino to read the voltage output and convert it to a temperature reading displayed in Celsius degrees. The Arduino code samples the sensor voltage, converts it to millivolts, and divides by 10 to calculate and print the temperature to the serial monitor every second.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

LM 35

TEMPERATURE SENSOR
Pin configuration
• LM35 is a basic temperature
sensor that can be used for
experimental purpose .
• It give the readings in centigrade
since its output voltage is linearly
proportional to temperature.
• For 10mv there will be 1 degree
change in temperature.
Principle of working
• A temperature sensor measures the
hotness or coolness of an object.
• The sensor's working base is the voltage
that's read across the diode.
• The temperature rises whenever the
voltage increases.
• The operating temperature range is from -
55°C to 150°C.
Connecting to arduino
code
int val;
int tempPin = 1;

void setup()
{
Serial.begin(9600);
}
void loop()
{
val = analogRead(tempPin);
float mv = ( val/1024.0)*5000;
float cel = mv/10;
Serial.print("TEMPRATURE = ");
Serial.print(cel);
Serial.print("*C");
Serial.println();
delay(1000);
}
• 10 bit resolution=>2^10 divisions

5000mv=1024steps
?(x mv)=reading
x mv=5000*reading/1024

10mv=1 degree C change in temp


Temp=x mv/10
Serial monitor output
Queries?

You might also like