The spell
What Alarm does
You set an alarm against unwanted intrusion. Choose a door, a window, or an area within range that is no larger than a 20-foot cube. Until the spell ends, an alarm alerts you whenever a Tiny or larger creature touches or enters the warded area. When you cast the spell, you can designate creatures that won't trigger the alarm. You choose what sort of sound the alarm makes when it triggers; it could be a loud ringing as if from a brass bell, a humming sound you might hear from a tuning fork, or any other sound you decide. The sound can be heard from up to 60 feet away.
The spell ends when you cast it again, dismiss it as an action, or you are more than 1 mile away from the warded area.
