GPIO5 at 3V when i use it as an endstop input

Hey i am using endstops end my min endstop for the axis 1 is gpio5, it was ding ok and then boom it wouldn’t register, so i took my multimeter ans looked at gpio 5 and it’s at 3V instead of 0 when nothing is pluged in
how can i put it back to 0V ?

Configure the gpio pullups as necessary (see endstops page in the docs)