@peppino12 I think that probe could work. You would need to use probe type P4 or P5 depending on how you connected it.

https://duet3d.dozuki.com/Wiki/Gcode#Section_M558_Set_Z_probe_type
https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe