Thanks that made alot more sense after I read that post .
So assuming the following I found in the link.
PNP output normally-open inductive or capacitive sensor
Connect the sensor output wire to one end of a resistor (call this R1), and connect one end of another resistor (call this R2) to GND on the corresponding Endstop connector. Connect the free ends of R1 and R2 together and to the Sense pin of the corresponding Endstop connector. Also connect the sensor ground wire to corresponding endstop ground, and the sensor's + power wire to a suitable voltage (typically to VIN because these sensors usually need between 6 and 30V).
The values of R1 and R2 should be chosen so that about +3V appears at their junction when triggered. If R2 is 10K, then suitable values of R1 are 30K if the sensor is powered from +12V, and 68K if it is powered from +24V.
Then it should work without replacing the endstops with another type of endstop ?