Most embedded systems are reactive by nature. They measure certain properties of their environment with sensors and react on changes. For example, they display something, move a motor, or send a ...
State machines are so common that there are tools devoted to creating them by drawing circles and arts. There are simulators that will recognize your state machine ...