How to interface LM35(Temperature Sensor) with Arduino
In this article, I am going to explain how to connect LM35 with Arduino. The LM35 series are precision integrated circuit temperature devices with an output voltage linearly proportional to the Centigrade temperature. It Operates from 4 V to 30 V and Calibrated Directly in Celsius (Centigrade). It Rated for Full −55°C to 150°C Range and low-Impedance Output, 0.1 Ω for 1-mA Load. From Arduino ADC we read the analog value and then we will convert it to the °C. Arduino has 10bit ADC so we need to multiply the read value by 1024 and divide it by the voltage provided to LM35 to get the temperature in °C. void setup() { Serial.begin(9600); } void loop() { int analog = analogRead(A0); float MV = (analog/1024.0) * 5000; //5000 is the voltage provided float celsius = MV/10; Serial.print("In Degree Celsius= "); Serial.println(celsius); delay(1000); } In above pr...