In addition to the photos can you also provide the following:
The output of M122
The output of M98 P"config.g"
Your current config.g
Also please do this test and report the results:
Send M950 J5 C"io7.in", then read the state of the pin by sending: echo sensors.gpIn[5]
Do this both with and without a jumper shorting io7.in to ground.
Result should be 0 with the jumper, 1 without