#include <Servo.h>
Servo Gripper;
Servo upper;
int grip = A0; int up = A1;
void setup() {
Gripper.attach(10);
upper.attach(11);
}
void loop() {
int Vx = analogRead(grip);
int Vy = analogRead(up);
Vx=map(Vx,0,1023,0,180);
Vy=map(Vy,0,1023,0,180);
Gripper.write(Vx);
upper.write(Vy);
}