over voltage detection using comparator
Yes, you can add hysteresis using positive feedback from the comparator output.







simulate this circuit &ndash; Schematic created using CircuitLab

Of course, the amount of hysteresis you add depends on how noisy you expect your signals to be.