unstable inputs

A simple 100n capacitor from input to ground (on the Arduino side) also fixes most problems.
Leo..