Send gcode M119 to get the current endstop status.
The MAX endstops are undefined for RAMPS 1.1, so you'll need to edit pins.h before you can read them
The MAX endstops are undefined for RAMPS 1.1, so you'll need to edit pins.h before you can read them