Servo Issues

I've got a "servoless" payload drop and it wont loop it functions once and shuts down. I have it set so when the laser is tripped it drops but then after that it wont trip again without disconnecting the power.

Thank you for letting us know.

If you need any help then feel free to post your code and details of the hardware being used.

#include <Servo.h>

Servo myservo;  // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0;    // variable to store the servo position

void setup() {
  Serial.begin(9600);
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  myservo.writeMicroseconds(2000); // Closes drop servo
  pinMode(2, INPUT); //Set the laser sensor as input
}

void loop() {
  if(digitalRead(2) == LOW) 
  {
  myservo.writeMicroseconds(1000);
  delay(2000); 
  }
}

Once the servo has moved it is never commanded to move again. Is that what you want or should it reset its position after the delay() ?

I want it to reset, I also have a previous program that says that its suppose to close when not read as low still does the same thing.

I want it to reset,

So insert another myservo.writeMicroseconds(); as the last statement in loop() to keep the servo at its home position when the button is not pressed