Your connections look good and using the resistor devider,you dont need the Z endstop resistor enabled but you will need to enable the X and Y min endstop pullups.
This is acting as a NC probe, so try setting
#define Z_MIN_PROBE_ENDSTOP_INVERTING false
Quote
when i get a peace metal close and voltage change from low to high 5v
This is acting as a NC probe, so try setting
#define Z_MIN_PROBE_ENDSTOP_INVERTING false