#include <Servo.h>

Servo servo1;
void setup() {
  // put your setup code here, to run once:
 servo1.attach(9);
 servo1.write(0);
}

void loop() {
  // put your main code here, to run repeatedly:
 delay(200);
 servo1.write(90);
 delay(200);
 servo1.write(180);

}