Homing switch issue

Ah, so that’s the problem. It only touches the z once, then does nothing. I’ll try the fix you suggested. I appreciate the help. I know the way around power tools, no so much the coding part.