Motor (Pump) runs unpredictably

Bypassing refers to having capacitors of 0.1 uF from 5v to Gnd to remove electrical noise from the power input.

This noise can give spurious results.

Weedpharma