A Schmitt trigger works; anything to square-up the rise/fall times. All signals carry some noise, a slow ramp + noise = multiple logic threshold transitions.

Make that "Huevos con chile verde" and I'm sold.

Mariss