When you visit a new area, the danger sense picks one of the adjacent unvisited areas and marks it if there is an ambush. This way it works reliably in "corridors" and less so in "crossroads". Initially I tried to mark all the neighbouring ambushes, but it felt boring.