You sense any trap within range that is within line of sight. A trap, for the purpose of this spell, includes any object or mechanism that was created to cause damage or other danger. Thus, the spell would sense the Alarm or Glyph of Warding spell or a mechanical pit trap, but it wouldn't reveal a natural weakness in the floor, an unstable ceiling, or a hidden sinkhole.
This spell reveals that a trap is present but not its location. 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.