Using the limit switch signals, the port sensor (laser range finder), and possibly the LCD display, track Merch's state in an FSM. This state should be available via a RESTful api so that groot can poll for the state of the machine.