A 555 timer can be used to create a schmitt trigger inverter gate which converts a noisy input into a clean digital output. The input signal should be connected through a series capacitor which then connects to the trigger and threshold pins. A resistor divider, from VCC to GND, is connected to the previous tied pins.