There is a concept of "sticky" triggers, where you can say a sensor has stayed in a state for X amount of time.