It depends upon how you have your printer configured. In Configuration.h you will be looking for Z_MIN_PIN. It might be on that pin unless you have dual Z Min endstops defined.