I like the idea of knowing if the bathroom is available or not. I’m not quite sold on broadcasting how long someone has been in there. Either way, this looks like a practical project via the Hackster.io blog:
Redditor “notbookies” had a small issue at his place of work in that a dozen people share a single bathroom. While probably sufficient on a macro level, walking there only to find it occupied over and over was getting to be a bit of a nuisance. Naturally, he turned to electronic monitoring to solve this problem!
His solution comes in the form of an ESP8266 module, along with a magnetic sensor. When the door is open, it sends a signal to the module which can then generate a webpage, showing whether or not someone is in the bathroom based on if the door is open or closed. It also displays how long the door has been in a certain state, as well as stats on occupancy and vacancy.
Stop breadboarding and soldering – start making immediately! Adafruit’s Circuit Playground is jam-packed with LEDs, sensors, buttons, alligator clip pads and more. Build projects with Circuit Playground in a few minutes with the drag-and-drop MakeCode programming site, learn computer science using the CS Discoveries class on code.org, jump into CircuitPython to learn Python and hardware together, TinyGO, or even use the Arduino IDE. Circuit Playground Express is the newest and best Circuit Playground board, with support for CircuitPython, MakeCode, and Arduino. It has a powerful processor, 10 NeoPixels, mini speaker, InfraRed receive and transmit, two buttons, a switch, 14 alligator clip pads, and lots of sensors: capacitive touch, IR proximity, temperature, light, motion and sound. A whole wide world of electronics and coding is waiting for you, and it fits in the palm of your hand.