#include <Servo.h>
#include <Servo.h>
Servo right; // create servo object to control a servo // twelve servo objects can be created on most boards
Servo left;
int pos = 0; // variable to store the servo position
int val = 0;
void setup()
{
right.attach(9);
left.attach(8); // attaches the servo on pin 9 to the servo object
}