Description
The LM35 series are precision integrated-circuit temperature sensors, with an output voltage linearly sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant voltage from the room temperature and ±¾°C over a full 55°C to +150°C temperature range.
Technical parameters:
- Operates from 4 to 30 V
- Less than 60-µA Current Drain
- Low Self-Heating, 0.08°C in Still Air
- Nonlinearity Only ±¼°C Typical
Getting started with the LM35D Digital Temperature Sensor Linear Module
Now make your own temperature sensor by Arduino and LM35 digital temperature Sensor
Hardware required
Connecting the Hardware
Connect the LM35 Digital temperature sensor to the arduino UNO as shown below.
Sample Code
void setup()
{
Serial.begin(9600);//Set Baud Rate to 9600 bps
}
void loop()
{ int val;
int dat;
val=analogRead(0);//Connect LM35 on Analog 0
dat=(500 * val) /1024;;
Serial.print(“Temp:”); //Display the temperature on Serial monitor
Serial.print(dat);
Serial.println(“C”);
delay(500);
}
NOTE: If you get stray error the problem is with your “and” characters .Replace them with ordinary quotes “. And you should be fine.
Results
Open the Serial Monitor from (Tools>>Serial Monitor), you will see the temperature in serial monitor.