There are two ways to approach this problem. Either with BT decibel measuring, provided everyoen har something with BT.
The system thinks you are not in the room before the signal strength of the BT device reaches a certain level.
And also as pbcstudios suggested with thermal detection
Can this be used?: