// LCD1602 to Arduino Uno connection example
#include <LiquidCrystal.h>
#define potent_pin 3
int val;
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
void setup() {
lcd.begin(16, 2 );
// you can now interact with the LCD, e.g.:
}
void loop() {
// ...
val= analogRead(potent_pin);
val= map(val, 0, 1023, 50, 1000);
lcd.setCursor (0, 0);
lcd.print( "merts-" );
lcd.print( val );
}