In or Out ?

My choice is back with an RFID tag on his collar, and two readers (one inside, and one outside the door opening) - suitably separated to avoid cross triggering.

Slight overkill, but pretty reliable, weatherproof and proven tech.

Requires attention to detail of placement to ensure he’s within range as he passes the readers.