Spark Core Bathroom Monitor
americastestkitchen.github.io
americastestkitchen.github.io
Edit: and it's served from a statically-generated jekyll blog that is on their github page. Did I mention they have a github account. Very random and awesome.
What would be ideal is if it could be wired to the locking mechanism of the door. That's probably decently simple to do if the door is locked using a deadbolt because something physical is actually entering the doorframe. If it's just a lock that prevents the doorknob from turning, then you'd likely need to disassemble the locking mechanism and see where you can attach a switch.
Of course, if someone forgets to lock the door, that's basically an invitation for everyone else to walk in on them. On second thought, it seems to me that the best solution here is to mount webcams in the bathroom so that anyone can see if it's occupied. Seems like the only foolproof way to go here.
It actually would have been very interesting to poll employees and get data on 'failed bathroom trips' per day per employee before you finished the project.
From there, you could extrapolate the (supposed) daily productivity increase and do things like plotting the $$ or minutes saved per day on the screen.
First you need to wire up switches in everyone's seats...