#include <Servo.h> Servo myservo; void setup() { myservo.attach(9); myservo.write(90); // Sets servo to mid-point. } void loop() { }