G91 G1 H2 Z5 F6000 G90 if sensors.probes[0].value[0] == 0 ;check to see if probe already attached echo "Probe Value = 0" ;report check if sensors.probes[0].value[0] == 1000 ;check to see if probe is not attached G1 X53 Y347 F10000 ;if not goto klicky probe loction and connect probe abort "Probe Failed to Attach" ;if it does not attach report fail G1 X175 Y175 F10000 ;once attached move to center G30 K0 Z-99999 ;probe for Z home