#include <Servo.h>
Servo myservo; // create servo object to control a servo
void setup() {
// put your setup code here, to run once:
myservo.attach(9); // attaches the servo on pin 9 to the servo object
}
void loop() {
// put your main code here, to run repeatedly:
myservo.write(0); // sets the servo position according to the scaled value
delay(2000);
myservo.write(90); // sets the servo position according to the scaled value
delay(5000);
}