//include the Servo library in your sketch #include //create a servo object called myServo Servo myServo; void setup() { //attach myServo to pin 9 myServo.attach(9); //write the angle of 90 to myServo once myServo.write(90); } void loop() { //do nothing in the loop ; }