Protect Your Plant -- State Machines