@dc42 I enabled the pullup resistor for the io0.out pin, (and I found out a bad crimping contact for the X endstop... ^^').
Everthing works fine now. Thank you David.
Thanks everyone for your input!
I think I got it.
I removed the Z-Probe pin, and it now works completely.
4734c54a-89d9-47e9-8183-dace09afcd7c-image.png