#include <Servo.h>
Servo Servom;
int xh=A1;
void setup() {
// put your setup code here, to run once:
Servom.attach(11);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int x=analogRead(xh);
int deger = map(x, 0,1023,0,180);
Servom.write(x);
}