2D grid of ir sensors

What circuit are you using? P,ease post your schematic.
You should be using data selectors are you?