RainOfSteel
Explorer
The sensor rules on PHB p.173 note that other forms of protection are available, such as lead sheeting. If whoever the magical sensor had located and was viewing walked into a room shielded by lead sheets, I believe it would no longer be able to view anything.
There are two ways to go from here: Either the magic sensor gets to hang out until the duration runs out, or its duration ends prematurely.
There are two ways to go from hanging out: Either it can view things while waiting, or it can't.
My personal opinion is that the magical sensor, already established, hangs out. It would also continue to be able to view the area, but it couldn't move.
In any event, I would have nondetection work the same way as lead sheeting, only the subject could walk away unseen and the magical sensor would not be able to follow.
There are two ways to go from here: Either the magic sensor gets to hang out until the duration runs out, or its duration ends prematurely.
There are two ways to go from hanging out: Either it can view things while waiting, or it can't.
My personal opinion is that the magical sensor, already established, hangs out. It would also continue to be able to view the area, but it couldn't move.
In any event, I would have nondetection work the same way as lead sheeting, only the subject could walk away unseen and the magical sensor would not be able to follow.