Sounds like noise. Shielding may help.
How is your power supply? Same as the motor? That's another avenue for noise to reach your Arduino.
Sounds like noise. Shielding may help.
How is your power supply? Same as the motor? That's another avenue for noise to reach your Arduino.