Hysteresis prevents a Schmitt trigger from oscillating when a slowly changing input voltage is near the input threshold voltage.
A Schmitt trigger can convert a sinewave input into a squarewave or rectangular wave output with fast rise and fall times.
A Schmitt trigger can give a logic output when its input voltage is slowly changing.