I kept the ender5 limit switches but replaced the wiring with generic 3 pin wires to the board. I am having problems keeping the wires connected at the end stops.
With proper connectors, this should not happen. Maybe the wires are too "generic"?
I applied heat shrink tubing at the limit switch end, so they now all look perfect but seem to vibrate loose.
Cosmetics cannot hide the face below for long 👺. Use proper connectors or a good soldering iron - the switches are just fine.