#include Servo myservo; void setup() { myservo.attach(9); myservo.write(120); // set servo to mid-point } void loop() {}