/* Hello Wokwi! */
#include <LiquidCrystal_I2C.h>
const int pot=A3;
int potValue=0;
int fanValue=0;
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup() {
lcd.init();
lcd.backlight();
lcd.setCursor(1, 0);
pinMode(pot, INPUT);
}
void loop() {
lcd.setCursor(1,0);
potValue=analogRead(pot);
fanValue=map(potValue,0,1023,0,255);
lcd.print(fanValue);
lcd.setCursor(1,1);
lcd.print(potValue);
}