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