Restroom hacks | Datadog
Aug 23, 2016Chris Hoey, Daniel Benamy

Summary
This post details the implementation of an IoT system for monitoring bathroom occupancy. It describes the use of Raspberry Pis with magnetic reed switches and pin switches to detect door lock status. The data is exposed via a Python script running under tcpserver and daemontools, accessible via Netcat, providing real-time status updates to reduce bathroom contention.