Direction Detection Staircase lighting

Here's one person's approach: