by cvoinescu » Wed Apr 10, 2013 5:08 pm
It's best to twist each pair. It's almost as good to twist all four wires together. Braiding is good, but not as effective as twisting. Parallel wires very close to each other are about as good as braiding (e.g. ribbon cables). Loose wires are by far the worst.
Limit switches become fairly immune to noise if fitted with stiff pull-up resistors (say, 470 ohm). Even better is a limit switch NC to VCC and NO to GND, inputting into a Schmitt trigger.