#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
int potPin=A1;
int readVal;
void setup() {
pinMode(potPin,INPUT);
lcd.init();
lcd.backlight();
}
void loop() {
readVal = analogRead(potPin);
lcd.setCursor(1,0);
lcd.print(readVal);
delay(500);
lcd.clear();
}