Define a buffer value for relay deactivation (set the value according to the parameter selected for the relay). With hysteresis, an activated relay switches off only when the measured value crosses the relay activation/deactivation limit and the additional buffer value.