$ 0 0 @sribasu Just to be clear, you want hysteresis to avoid the chattering. Lacking it is the reason for the chattering behavior.