#include <LiquidCrystal.h>  				// Initialize the LCD object
LiquidCrystal lcd(12, 11, 5, 4, 3, 2); 			// Change these pins according to your setup
const int potentiometerPin = A0;			 // Analog pin connected to the potentiometer
void setup() {  
lcd.begin(16, 2); 					// Initialize the LCD with 16x2 characters 
lcd.print("Potentiometer:");
}
void loop() { 
int sensorValue = analogRead(potentiometerPin); 	// Read the analog value from the potentiometer 
lcd.setCursor(0, 1); 					// Set cursor to the second line 
lcd.print("Value: ");  
lcd.print(sensorValue); 
delay(500);					 // Delay to prevent rapid updates
}