State Machine In Electronics