Added a debug print of the limit switches to aid debugging