On/off latch (hysteresis)

Input data

Measurement

On below

Off above

Output when on

Output when off

Start on

Output data

Output

On