Temperature measurement using LM35 and Arduino UNO

<<< Previous : Anti-theft system designed using IR LED and TSOP IR sensor

LM35 is a precision temperature integrated circuit which gives an output voltage proportional to the temperature in centigrade. LM35 has three legs out of which two are positive voltage supply and ground. Remaining one is the output which gives an output voltage proportional to temperature in centigrade. Circuit is done as shown in the following diagram.

2 74165 and LDR

Pin out diagram of LM35

Screenshot from 2015-08-04 08:51:04

After completing the circuit, upload the following program to your arduino board. If uploading is successful, open your serial monitor where you can see the temperature in degree celsius.

int value;
int temp_read_pin = 1;

void setup()
void loop()
  value = analogRead(temp_read_pin);
  float mv = ( value/1024.0)*5000; 
  float celsius = mv/10;

  Serial.print("TEMPRATURE IS ");

Screenshot of serial monitor is given below. Temperature will be printed in the serial monitor.

Screenshot from 2015-07-24 18:14:44

Next : Simplest circuit to control an LED, depending on light, using LDR >>>

(Visited 2,508 times, 1 visits today)
A deep electronic enthusiast who spent most of my time for electronic experiments. I am also interested in publishing my experiments in my blog for helping other electronics enthusiasts.