dont know what for printer you have but with the command G32 and G29 it wil go to the probing action. G32 homing + probing and G29 only probing. i use only G32 because i want to home first before probing.
on my printer i have the following
z-probe trigger signal >>> z-max endstop pin (5volt and digital pin) (could also be any other digital pin)
servo motor >>> x-max endstop pin (5volt, digital pin and ground) (could also be any other digital pin)
With the probe start script and finished script u can tell the firmware what to run when going into probing. So even before probing actualy happens it wil run the start script first. in my start script i lower the probe first with M340 P0 S500 and when it has done probing, finsished script, i let the probe go up to its original position M340 P0 S0
because i have the probe on the z-max i can use m119 it wil show the status of al the endstops and that of the z-probe. dont know when you use a other digital pin than that of the endstops that the m119 gcode still works.
what i did before i even started was trigger the z-probe and use m119 to see if the status of the z-probe changed, if not than i new i configured it wrong. also i used the m340 gcode like m340 P0 S50 to see if the servo would move
hope this helps a bit