Find Traps
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.
Find Traps 5e 2024 vs. 2014 edition differences
The 2024 version broadens the definition of traps to include objects or mechanisms created to cause damage or danger, whereas the 2014 version specifies harmful or undesirable effects intended by the creator. The 2024 version explicitly states the spell reveals the presence but not location, similar to the 2014 version.