#include <ESP32servo.h>
const int servoPin = 13;
const int trigPin = 5;
const int echoPin = 18;
Servo servo;
void setup() {
servo.attach(servoPin,500,);
}
int pos = 0;
void loop() {
servo,write(180);
delay(1500);
servo.write(0);
delay(1500);
}