How to interface the LMT01 temperature sensor with Arduino


October 31, 2017

The LMT01 device is a high-accuracy, 2-pin temperature sensor with an easy-to-use pulse count current loop interface, which makes it suitable for onboard and offboard applications in automotive, industrial, and consumer markets.  The device is guaranteed to have a accuracy of 0.7C (max) from -50C to 150C and is available in the TO-92 and WSON packages.  The low pin-count and low power consumption make the LMT01 suitable for a number of applications such as digital output wired probes, white goods and IoT.

In this tutorial, we will begin with a general overview of the LMT01 sensor, including its features and its unique digital pulse train output. Then, we will discuss the capabilities and configuration of the comparator included with the MCU on the Arduino Uno. Next, we will talk about how to use Interrupts and Interrupt Service Routines to count the pulses being output by the LMT01. A working demonstration of the LMT01 and the LCD display will be provided to tie it all together. Finally, we will go step-by-step through the code, so that you can reproduce these results with the LMT01 on your own.

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

Product Folder:


Arduino Code:


Additional information

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