#include <LiquidCrystal_I2C.h>
int lcdColumns = 16;
int lcdRows = 2;
const int potPin = 34;
int potValue = 0;
int i=0;
// set LCD address, number of columns and rows
LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows);
void setup(){
lcd.init();
lcd.backlight();
}
void loop(){
lcd.setCursor(3, 0);
potValue = analogRead(potPin);
lcd.print("POT Value =");
lcd.setCursor(3, 1);
lcd.print(potValue);
delay(1000);
lcd.clear();
}