Make a night-light model
Explore why two thresholds can reduce flicker.
Build or compare
Read light level repeatedly and turn the display on below one threshold and off above a higher one.
Test the result
Move slowly past a light source. Compare the result with a single threshold.