#include Servo servo1; const int pinservo1=1; void setup() { servo1.attach(pinservo1); } void loop() { servo1.write(0); delay(500); servo1.write(30); delay(1000); servo1.write(60); delay(2000); }