Home to Z-max, Probe z-min with dual endstops

You probably have the endstops wired wrong. Check them with M119. And if you need more, open your own fresh thread with sourdough details about your build.