How do I deploy PIR sensors to track people's entrance and exits of a room?
To keep track of whether a room has an occupant you only need a PIR sensor in the room. This is easier, and possibly more reliable than monitoring direction of movement through doors (and allowing for pranksters exiting windows etc)

I'm assuming you don't implant RFID tags in all potential visitors.