This was my first go at the RPM sensor with a different encoder wheel and photo-interrupter. The biggest problem was the interference from the motor. The second iteration was with a shielded cable which solved a bunch of problems. also having a photo-interrupter really helped the situation out.