You have two optical (IR probably) sensors, with a wall between them. If the wall is pointing exactly at the beacon, both sensors see it, if it is a little off, only one sensor sees it, and you know which way to turn. If neither sees it, you rotate until one does see it.
Bob