#define p A5
#include <Servo.h>
Servo servo;
void setup() {
servo.attach(11);
}
void loop() {
int potValue = analogRead(p);
int C = map(potValue,0,1023,0,180);
servo.write(C);
}