@DieterSw For a PNP device, see the example here for how to connect: https://docs.duet3d.com/User_manual/Connecting_hardware/Z_probe_connecting#pnp-output-normally-open-inductive-or-capacitive-sensor
I've added a wiring diagram to make it clearer how to wire a PNP sensor. See above text for values for R1 and R2.
alt text
Ian