You either will your unicorn horn into our out of existence. If you are without your horn you may only cast cantrips until you use the ‘Sheath’ cantrip to summon it again.
For the duration, you know if there is an aberration, fiend, or undead within 30 feet of you, as well as where the creature is located. Similarly, you know if there is a place or object within 30 feet of you that has been magically desecrated.
The spell can penetrate most barriers, but it is blocked by 1 foot of stone, 1 inch of common metal, a thin sheet of lead, or 3 feet of wood or dirt.