Hi. Thank you for playing and rating my silly game. I'm glad you liked it. It might detect but it should ignore the player beyond the walls. Still I'll look into it, definitely a bug.
It was at the end of a wall. I would say even if there’s a collision between the player and a light, it should not trigger if there is no “line of sight”.