const int TempPin = A0; int tempVal = 0; #include LiquidCrystal lcd(2, 3, 8, 9, 10, 11); void setup() { lcd.begin (16,2); Serial.begin (9600); } void loop() { tempVal = analogRead (TempPin); Serial.println (tempVal); tempVal = map(tempVal, 900, 1000, 0, 100); Serial.println (tempVal); lcd.clear(); lcd.setCursor (1,1); lcd.print (tempVal); delay(500); }