#include<LiquidCrystal.h> int sensorPin = 0; // initialize the library with the numbers of the interface pins LiquidCrystal lcd(0, 1, 8, 9, 10, 11); //REGISTER SELECT PIN,ENABLE PIN,D4 PIN,D5 PIN, D6 PIN, D7 PIN voidsetup() { // set up the LCD's number of columns and rows: lcd.begin(16, 2); } voidloop() { //getting the voltage reading from the temperature sensor int reading = analogRead(sensorPin); // converting that reading to voltage, for 3.3v arduino use 3.3 float voltage = reading * 5.0; voltage /= 1024.0; // now print out the temperature float temperatureC = (voltage - 0.5) * 100 ; //converting from 10 mv per degree with 500 mV offset //to degrees ((voltage - 500mV) times 100) // set the cursor to column 0, line 1 lcd.print(temperatureC);//print temperature lcd.setCursor(0, 0);// set the cursor to column 0, line1 delay(1000); lcd.clear(); }