#include <LiquidCrystal.h>
int pot=12;
int val;
int rs=18, en=5,d4=23,d5=22,d6=21,d7=19;
LiquidCrystal lcd(rs,en,d4,d5,d6,d7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
pinMode(pot, INPUT);
}
void loop() {
val=analogRead(pot);
lcd.setCursor(0,0);
lcd.print("pot val:");
lcd.print(val);
}