Mechanical Endstop Lever Switch with Cable - Micro Switch - 3D Printer CNC

You do not need to worry about reliability, the switches used are rated for 1 million operations before failure. This can be a big help when debugging. 5V: Endstop Power. GND: Endstop Ground. 1x Connector cable.

eBay