You might also want to use a timer.
Hi, I'm Hal. I love building things with LEGO, typing, and programming with Thymio!