#include <Servo.h>;
Servo servo_bird;
void setup() {
// put your setup code here, to run once:
pinMode(A0, INPUT);
servo_bird.attach(11);
servo_bird.write(90);
}
void loop() {
// put your main code here, to run repeatedly:
int elox = analogRead(A0);
int ugol = map(elox, 0, 1023, 0, 180);
servo_bird.write(ugol);
}