This simple circuit shows how a voltage comparator behaves like a smith-trigger.
It works using the voltage increment at the non inverting input once the upper threshold is passed. This happens as the comparator output feeds voltage back onto the non inverting input keeping its active status even during the voltage value is decreasing under the previous threshold value. As soon as the input voltage passes the lower threshold, the output switches off thus everything reaches back at the initial state. It is good to have such a circuit at the front end of any sensible circuit where noise or voltage uncertainty represent a critical factor for its function. Example : a signal received after a noisy path where its attenuation has compromised the S/N