long LengthOfYourPause;
long remTime;
void setup()
{
LengthOfYourPause=5000; //we will check every 5 seconds
remTime=millis(); //remember the current time
}
void loop()
{
//do whatever stuff you normally do in a loop
if(millis()>=remTime+LengthOfYourPause)
{
//do your led check or whatever you wanted to check here
remTime=millis(); //reset your clock for the next time through
}
}