The LM35 series are precision integrated-circuit temperature sensors, with an output voltage linearly proportional to the Centigrade temperature. Thus the LM35D has an advantage over linear temperature sensors calibrated in ° Kelvin, as the user is not required to subtract a large constant voltage from the output to obtain convenient Centigrade scaling. The LM35D does not require any external calibration or trimming. Low cost is assured by trimming and calibration at the wafer level. The low output impedance, linear output, and precise inherent calibration of the LM35D make interfacing to readout or control circuitry especially easy. The device is used with single power supplies, or with plus and minus supplies. As the LM35 draws only 60 μA from the supply, it has very low self-heating of less than 0.1°C in still air. The LM35D is rated to operate over a 0°C to +100°C temperature range.
Features:
• Calibrated Directly in ° Celsius (Centigrade)
• Linear + 10 mV/°C Scale Factor
• 0.5°C Ensured Accuracy (at +25°C)
• Suitable for Remote Applications
• Low Cost Due to Wafer-Level Trimming
• 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
• Low Impedance Output, 0.1 Ω for 1 mA Load
Arduino Code
/* Define the analogue pin used to read the temperature sensor (A0) */
#define LM35Pin 0
/* Stores the current temperature reading */
float Temperature;
void setup()
{
Serial.begin(9600);
/* Set the analogue reference used by the ADC inputs
to the internal 1.1V reference */
analogReference(INTERNAL);
}
/* Main Program */
void loop()
{
/* Read the analogue pin and scale the reading to degrees centigrade
(10mV per oC / (1.1V Int Ref / 1024 ADC resolution)) */
Temperature = analogRead(LM35Pin) / 9.31;
Serial.print(“Current temperature (oC): “);
Serial.println(Temperature);
/* Wait 1 second before reading again */
delay(1000);
}