You can see and hear a being that is on the same plane of existence as you. The target creature must make one perceptual immunity; the adjustment value of this immunity is related to your knowledge of the target and the degree of physical connection between you and the target. If the target knows that you are casting the spell and it is willing to be observed by you, it may voluntarily waive that immunity.

Scrying 5e

Level: 5th

Classes: Bard, Wizard, Cleric, Warlock, Druid

Casting Time: 10 minutes

Range: Self

Components: V, S, M

Duration: Concentration, up to 10 minutes

If the opponent’s immunity succeeds, the target is unaffected by the spell, and you cannot attempt to detect the same target for 24 hours.

If your opponent’s immunity fails, you create an invisible sensor within 10 feet of the target. With the sensor, you can see and hear your surroundings immersively. The sensor moves with the target and stays within 10 feet of the target for the duration of the spell. To a creature that can see through invisibility, your sensor is a fist-sized ball of light.

In addition to the creature, you may also choose a location you’ve seen before as the target of the spell. The sensor will then appear at the target location and will not move.