   delay(2000);
   laser.fire(1);
   Serial.println(F("setup complete"));
-//  attachInterrupt(0, sleepInt, FALLING);
+
 }
 
 

    shake();
  }

if(millis() - timePassed >= 1000){
    changeVal = getMarkovSpeed(changeVal);
    markovShakeState = markovState(10, 20);


    if(random(101) < 6){
      delay(markovPause());

    }


    if(random(1001) <= 5){
      sleep(5, 10);

    }

    else if(random(6001) < 10){
      sleep(1800, 2400); //sleep between 30 and 40 minutes
    }
    timePassed = millis();

    panTilt.updateAngles();

    delay(50);


    panTilt.detach();
    while(!mSwitch.switchState()){
