-
Noise is usually from floating pins. Try a "pulling resistor" for example, if your sketch is waiting for a HIGH from your sensor, use a "pulldown resistor" of 330 ohm to a ground pin (and pullup to Vcc if your sketch waits for a LOW).
-
Use shortest wires possible.
-
"Pull" all unused pins to keep the pins from becoming receive-antennae.