#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
const int potPin = 34;
void setup() {
Serial.begin(9600);
lcd.init();
lcd.backlight();
}
void loop() {
int potValue = analogRead(potPin);
lcd.setCursor(0, 0);
lcd.print("Nilai Pot: ");
lcd.print(potValue);
Serial.print("Nilai Pot: ");
Serial.println(potValue);
delay(200);
}