I use this macro, i found it on the forum. its working for now
; Z Probing macro
M400 ; wait for current movement to finish
M291 P"Make sure the probe is connected and the Endmill is on top of the probe" R"Warning" S3 ; warning message
G91 ; set relative position
G30 S-1
M400
G10 L20 Z19.1 ; set Z offset to 19.1
G1 Z10
M291 P"Probing complete on the CURRENT WCS. Please remove probe." R"Success" S1 ; screen message```