Arduino library for implementing a finite state machine.