The connecting wires of limit switch get loose or the limit switch is broken. Please  check if the wires connecting limit switch and main board are loose. If yes, you  need to pull out the wires and reinsert. If no, that means the limit switch is broken  and need to be replaced.