#include <Servo.h>
Servo servo1;
void setup() {
// put your setup code here, to run once:
servo1.attach(11);
}
void loop() {
// put your main code here, to run repeatedly:
int valor = analogRead(A0);
int angulo = map(valor,0,1023,0,180);
servo1.write(angulo);
delay(50);
}