#include <Servo.h>
int hort =A5;
int vert =A4;
int ServoX = 9;
int ServoY =10;
Servo XServo;
Servo YServo;
void setup() {
Serial.begin(9600) ;
XServo.attach(9);
YServo.attach(10);
}
void loop() {
int xValue = analogRead(hort);
int yValue = analogRead(vert);
int xAngle = map(xValue, 0, 1023, 0, 180);
int yAngle = map(yValue, 0, 1023, 0, 180);
XServo.write(xAngle);
YServo.write(yAngle);
}