Issues with Millis function and sensors

and don´t forget to mention a time controlled FSM.