#define sigPo 36
#define sigSV 19
#include <ESP32Servo.h>

Servo mysv;

void setup() {
  mysv.attach(sigSV);
}

void loop() {
  unsigned int pot  = analogRead(sigPo);
  byte rot          = map(pot,0,4095,0,255);
  mysv.write(rot);
}