#include <ESP32Servo.h>
#include <LiquidCrystal_I2C.h>
Servo myservo;
LiquidCrystal_I2C lcd(0x27, 16, 2);
int servo = 90;
void setup()
{
myservo.attach(2, 500, 2500);
myservo.write(servo);
lcd.init();
lcd.setCursor(0, 0);
lcd.print(servo);
lcd.print(" derajat");
}
void loop()
{
delay(10);
}