Interference problem with slotted IR sensors

mikeoz:
I've also read to route the sensor wires away from the power lines, but to do that I'd need longer cables. So my question is, which is most important?

To extent you are able, place the sensor wires at right angles to the power wiring. Wires laid parallel function as an invisible transformer which will induce currents - noise interference - into their neighbors.