#include <Servo.h>
Servo servo;
int a, b, c=100;
void setup() {
// put your setup code here, to run once:
servo.attach(11);
}
void loop() {
// put your main code here, to run repeatedly:
a= analogRead(A5);
b= map(a, 0, 1023, 0, 180);
servo.write(b);
delay(c);
}