The scanner is used to reveal invisible walls and enemies, as it is the main tool for navigating the dungeon.