#include <Servo.h>

Servo servo;

void setup(){
servo.attach(9);
}
void loop(){
servo.write(10);
delay(300);
servo.write(0);
delay(300);
servo.write(20);
delay(300);
servo.write(0);
delay(300);
servo.write(30);
delay(300);
servo.write(0);
delay(300);
servo.write(40);
delay(300);
servo.write(0);
delay(300);
servo.write(50);
delay(300);
servo.write(0);
delay(300);
servo.write(60);
delay(300);
servo.write(0);
delay(300);
servo.write(70);
delay(300);
servo.write(0);
delay(300);
servo.write(80);
delay(300);
servo.write(0);
delay(300);
servo.write(90);
delay(300);
servo.write(0);
delay(300);
servo.write(100);
delay(300);
servo.write(0);
delay(1000);
servo.write(0);
delay(2000);

}