#include Servo myservo; Servo myservo1; char Val; int pos = 0; void setup() { myservo.attach(9); myservo1.attach(6); Serial.begin(9600); myservo1.write(90); myservo.write(90); } void loop() { while (Serial.available() > 0) { Val= Serial.read() if (Val== 's') { myservo.write(180); } if (Val == 'a') { myservo.write(120); } if (Val == 'q') { myservo1.write(180);} if (Val == 'w') { myservo1.write(120);} }}