     strip.show();
     delay(wait);
   }
-
 }
 
 

    Particle.connect();
  }
  Particle.process();

  if (isOperatingTime()) {
    switch(doorState)

  }
}

bool endTimeIsNextDay() {
  if (lightupStart + lightupHours >= 24) {
    return true;
  } else {
    return false;
  }
}

bool isOperatingTime() {
  currentHour = Time.hour();
  lightupEnd = lightupStart + lightupHours;

  // same day calculation
  if ( (lightupEndNextDay == false) && ((currentHour >= lightupStart) && (currentHour < lightupEnd))) {
    return true;
  }

  // End time is tomorrow.
  // Let's say that operating time is 6pm to 3am.  That's 18 --> 27, 27 representing the next day.
  // We will count time from 18 on up and then from 3 to 0.  So we measure the bleed over with the or statement below
  // here to cover the "next day" case.
  if ( (lightupEndNextDay == true) && (currentHour >= lightupStart) || (currentHour <= (lightupEnd - 24))) {
    return true;
  }

  return false;
}

// Turn all the neopixels off
void blankStrip() {
  uint32_t black = strip.Color(0, 0, 0);
  for(uint16_t i=0; i<strip.numPixels(); i++) {
