Best router for presence detection

I need a little bit of help. I’m really new to this, so go easy on me.

The situation is that I’m moving into a new shared house. One of us has to be able to monitor who is home for fire safety reasons. So I would like to use Home Assistant solely for this. What setup would you recommend?