Find Traps

2nd-Level Divination
Casting Time: 1 action
Range: 120 feet
Components: VS
Duration: Instantaneous

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.
At Higher Levels. When you cast this spell using a spell slot of 4th level or higher, the spell detects harmful effects that were not intended as well, and tells you how many traps are in the area, and if they are close (within 30 feet). When you cast this spell using a spell slot of 6th level or higher, traps detected by this spell are outlined in a soft glow, revealing them if they or their triggers are invisible or in darkness.

Source: PHB 241, SRD