How to detect obstacles (Tripwire with Laser, IR or similar)
Marcus can't you make more optically re-arranged for side rear view blocking with 1 per row.  I have done this on pattern recognition with 5mm LEDs and IRDA detectors recessed 2cm from aperture holes with a unique data pattern on a PIC and detected 8 LEDs in parallel but in TDM patterns so that path blocking was critically dependent on alignment but laser like resolution with cheap parts on board.
In your case emitters on one side IRDA SMD detectors on the other.  You can join your paths in the bottom with ribbon wire crimp wire-to-board connectors or flex ZIF sockets.

Nylon washer stress relief on thread mounts both sides and 8mm thick glass
Add Blue LEDs for edge lights or strip led for appearance.

This is a 4D EO problem , a  great challenge for EE's with inside and outside the box thinkers, reduced to 2D , X and time for optical path blocking with low error rate. It can be done with 25 cent 5mm IR LEDs.  A PIC is not needed here, if you have a Johnson Counter and hex Darlingtons and some logic for your interface. Total current consumption may be 50mA~100mA @ 5V.

TDM serial port of gated OR outputs 1000110001 indicates 4 IRDA paths  blocked from 10 footswitch pins.
I successfully built this proof of concept using a 1m path with a wire resistor in its path was enough with care for perfect reception in spite of crosstalk and scattering.  Every path must be analyzed for intensity and attenuation to resolve this design that works to get a binary error free result immune to bright light. PCB alignment is guaranteed but the housing design.
You will need a base to secure the fixture.
I used non-reflective holes and with black heatshrink over the emitters.
Take 2

Careful machining is critical and aperture design.