Email

How to interface the LM35 analog temperature sensor with Arduino

Details

Date: October 31, 2017

The LM35 series are precision integrated-circuit temperature devices with an output voltage linearly proportional to the Centigrade temperature.  The device has a gain of +10mV/oC and a typical accuracy of 0.75oC from -55oC to 150oC making it suitable for many applications including power supplies, battery management, HVAC, and appliances.

In this tutorial, we will first look at the LM35 in general, including its accuracy, capabilities, and pin out. Then, we will discuss how to properly configure the ADC on the Arduino in order to minimize the amount of error it introduces into our temperature reading.  Then, we will look at a quick demonstration of the LM35 being read by an Arduino Uno. Finally, we will go step-by-step through the code, so that you can reproduce these results with the LM35 on your own.

Note: The example code file provided includes the hardware schematic relevant to this tutorial.

arrow-topclosedeletedownloadmenusearchsortingArrowszoom-inzoom-out arrow-downarrow-uparrowCircle-leftarrowCircle-rightblockDiagramcalculatorcalendarchatBubble-doublechatBubble-personchatBubble-singlecheckmark-circlechevron-downchevron-leftchevron-rightchevron-upchipclipboardclose-circlecrossReferencedashdocument-genericdocument-pdfAcrobatdocument-webevaluationModuleglobehistoryClockinfo-circlelistlockmailmyTIonlineDataSheetpersonphonequestion-circlereferenceDesignshoppingCartstartoolsvideoswarningwiki