#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin
// with the arduino pin number it is connected to
const int rs = 12, en = 14, d4 = 21, d5 = 19, d6 = 18, d7 = 4;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int potpin=35;
int val;
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16,2);
lcd.setCursor(0,0);
lcd.print("Pot Value is :");
}
void loop() {
val=analogRead(35);
lcd.setCursor(0,1);
lcd.print(val);
}