#include <Servo.h>
#define ServoPin 11
#define PotPin A1
Servo servo;
void setup() {
Serial.begin(115200);
servo.attach(ServoPin);
servo.write(0);
}
void loop() {
int Degree = map(analogRead(PotPin),0,1023,0,180);
servo.write(Degree);
delay(100);
}