LMT01 driving LCD display

I downloaded this sketch from a Texas Instruments website. I wired it to an Arduino Uno & 1602 display. I’m fairly new at programming and haven’t learned good debugging skills, so I hoped it would run, then I planned to go over the code to understand what each line was doing - regrettably it puked and I don’t know why. Any body want to have a look/challenge her it is:

/*

  • LMT01_Example.ino
  • Created: July 10th, 2017
  • This sketch is released AS-IS into the public domain, no guarantee or warranty is given.
  • This code is not supported by Texas Instruments.
  • Description: This sketch shows how to use the LMT01 to read the curent temperature and print
  • it to a standard 1602 LCD Display. This sketch makes extensive use of the comparator included
  • with the Arduino Uno, and as such will not be compatible with other Arduino device. Please see
  • the associated schematic file for device setup.
  • Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
  • Redistribution and use in source and binary forms, with or without
  • modification, are permitted provided that the following conditions
  • are met:
  • Redistributions of source code must retain the above copyright
  • notice, this list of conditions and the following disclaimer.
  • Redistributions in binary form must reproduce the above copyright
  • notice, this list of conditions and the following disclaimer in the
  • documentation and/or other materials provided with the
  • distribution.
  • Neither the name of Texas Instruments Incorporated nor the names of
  • its contributors may be used to endorse or promote products derived
  • from this software without specific prior written permission.
  • THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  • “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  • LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  • A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  • OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  • SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  • LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  • DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  • THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  • (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  • OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

*/

#include <LiquidCrystal.h>

//Declare RS, E, D4, D5, D6, D7
LiquidCrystal lcd(3,5,6,9,10,11);

volatile int pulseCount = 0;
float temperature = 0;
int hold = 0;

void setup()
{
//initialize 1602 LCD Display
lcd.begin(16, 2);
//Print Label for Pulse count
lcd.setCursor(0,0);
lcd.write("PULSES: ");
//Print label for Temperature
lcd.setCursor(0,1);
lcd.write("TEMP(C): ");

//Setup ACSR Register, to initlize the comparator

/* ACSR Bit Description
*
ACD - Clear ACD to enable Analog Comparator
ACBG - Set ACBG to 1 to use internal 1.1V Reference
ACO - Clear ACIO (Will be ignored - read only)
ACI - Reset Analog Interrupt Flag by writing 1
ACIE - Set ACIE to enable comparator interrupt
ACIC - Clear ACIC, no connection to Timer/counter
ACIS1 - Set ACIS1 to trigger interrupt on falling edge
ACIS0 - Cleat ACIS0 to trigger interrupt on falling edge
*/
ACSR = B01011010; //Set according to above bit description
}

void loop()
{
//don’t bother entering the loop again if no pulses have been counted yet.
if(pulseCount != 0)
{
//Wait for counting to be complete
while(pulseCount != hold)
{
hold = pulseCount;
delay(1);
}

//Print Pulse count to LCD
lcd.setCursor(9,0);
lcd.print(pulseCount);

//Print Temperature to LCD
temperature = 0.0625 * pulseCount - 50;
lcd.setCursor(9,1);
lcd.print(temperature);

//reset pulseCount for next loop
pulseCount = 0;
}
delay(2);
}

//Interrupt Service Routine, counts pulses
ISR(ANALOG_COMP_vect)
{
//Increment pulse count
pulseCount += 1;

}

Here are the error messages:
piling core…
Using precompiled core
Linking everything together…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc” -w -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega328p -o “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.elf” “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028\sketch\LMT01_Arduino_Example_Code_1.0.ino.cpp.o” “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028\libraries\LiquidCrystal\LiquidCrystal.cpp.o” “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/…\arduino_cache_873390\core\core_arduino_avr_uno_0c812875ac70eb4a9b385d8fb077f54c.a” “-LC:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028” -lm
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy” -O ihex -j .eeprom --set-section-flags=.eeprom=alloc,load --no-change-warnings --change-section-lma .eeprom=0 “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.elf” “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.eep”
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-objcopy” -O ihex -R .eeprom “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.elf” “C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.hex”
Using library LiquidCrystal at version 1.0.7 in folder: C:\Program Files (x86)\Arduino\libraries\LiquidCrystal
Sketch uses 3680 bytes (11%) of program storage space. Maximum is 32256 bytes.
Global variables use 85 bytes (4%) of dynamic memory, leaving 1963 bytes for local variables. Maximum is 2048 bytes.
C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf -v -patmega328p -carduino -PCOM3 -b115200 -D -Uflash:w:C:\Users\Don XXX\AppData\Local\Temp\arduino_build_61028/LMT01_Arduino_Example_Code_1.0.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch

System wide configuration file is “C:\Program Files (x86)\Arduino\hardware\tools\avr/etc/avrdude.conf”

Using Port : COM3
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x20
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x30
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x20

avrdude done. Thank you.

An error occurred while uploading the sketch
Invalid library found in C:\Users\Don XXX\Documents\Arduino\libraries\LMT01_Arduino_Example_Code_1.0: C:\Users\Don XXX\Documents\Arduino\libraries\LMT01_Arduino_Example_Code_1.0
Invalid library found in C:\Users\Don Z\Documents\Arduino\libraries\LMT01_Arduino_Example_Code_1.0:

Attached is the schematic, which I checked twice, believe I followed it.

LMT01_Altium.pdf (59.1 KB)

The code compiles OK (v 1.6.12 for UNO) I copied all except initial comments.