I'm looking for an example of a simple FSM implemented in Erlang using the gen_fsm from OTP.
I found this tutorial really helpful -
http://spawnlink.com/articles/tag/gen_fsm/