For a long time, we’ve been turning on the lights at the beginning the staircase, just to turn them off when we reach another floor.
But instead, we built a simple system to turn them ON automatically when you are going upstairs or downstairs, just by using a couple of IR proximity sensors, a relay and an Arduino Pro Mini, to control the timing.
Featured on Instructables !!