Hysteresis

Offset between switching on and off for an object which moves closer to the sensor and then moves further away again.