You sense the presence of any trap within range that is within line of sight. A trap, for the purpose of this spell, includes anything that would inflict a sudden or unexpected effect you consider harmful or undesirable, which was specifically intended as such by its creator. Thus, the spell would sense an area affected by the alarm spell, a glyph of warding, or a mechanical pit trap, but it would not reveal a natural weakness in the floor, an unstable ceiling, or a hidden sinkhole.
This spell merely reveals that a trap is present.
You don't learn the location of each trap, but you do learn the general nature of the danger posed by a trap you sense.
Includes material from the System Reference Document (SRD 5.2.1 / 5.1) by Wizards of the Coast, licensed under CC BY 4.0. Converted to Markdown, split into pages and cross-linked by OmnisGM.Legal
Dungeons & Dragons and D&D are trademarks of Wizards of the Coast LLC. OmnisGM is an independent project, not affiliated with or endorsed by Wizards of the Coast.