position detection

To hook up the 12 sensors you need to multiplex the digital inputs on the Arduino board.

Check this: