change the detect method by linear actuator of limit switch.