Concept Flow - Timing-based state machines
Start
Initialize variables
Check current time
Compare with last state change time
If enough time passed?
No→Stay in current state
Yes
Change to next state
Update last state change time
Perform actions for current state
Repeat loop
The program checks the time repeatedly and changes states only after a set delay, updating the state and time accordingly.
