This demo shows a light / sensor pair governed by two thresholds. Thrashing (repeated on/off) may occur depending on the thresholds and the proximity of the light to the sensor.
Try changing the on / off thresholds and click "submit".
The light source is 800 lumens (e.g. 60W incandescent).
The light source and sensor are moveable.