#include <ESP32ervo.h>
#define PONTENTIOMETER_PIN 2
#define SERVO_PIN 34
servo servo;
void setup() {
Serial.begin(115200);
servo.attach(SERVO_PIN);
}
void loop() {
int sensor value = analogRead(PONTENTIOMETER_PIN);
int angle = amp (sensorValue,0,4095,0,180);
Servo.write(angle);
delay(15);
}