#include <Servo.h>
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
const int potPin = A0;
const int servoPin = 3;
Servo servo1;
void setup() {
servo1.attach(servoPin);
lcd.begin(16, 2);
lcd.print("Focus");
}
void loop() {
int potValue = analogRead(potPin);
int Focus = map(potValue, 0, 1023, 0, 180);
servo1.write(Focus);
lcd.setCursor(0, 1);
lcd.println(Focus);
delay(100);
}