Using occupancy sensor + PC to alert whether boss is in his office?

I’m exploring a geeky office hack. Here’s the deal. I’m assistant to my organization’s vice president and president. We’re in a pretty big building, and my office plus their two offices are hidden off in a far corner.

There are days when people will walk back here six or seven times hoping to catch one of them, to ask a quick question or get their feedback on something small. And every time the bosses aren’t in their offices–they’re off at a meeting or in someone else’s office.

My idea is that it seems possible to put an occupancy sensor in each of their offices, share that simple bit of information (“occupied” or “unoccupied”) with a computer/server, and then share that information with co-workers who want to know.

Any idea how to do that?

It wouldn’t be foolproof–the sensors would probably still indicate “occupied” for several minutes after each time they leave, and there would certainly be times when it would indicate “occupied” but they would be meeting with someone else or have their door closed.

Thoughts on the feasibility of this and any suggestions on how it could work?