Tired of waiting in a long line to use the bathroom? The internet may offer a solution.

Major telecommunications carrier KDDI Corp. will launch a service to let people know how many cubicles are occupied through smartphones and computers.

Sensors in the cubicles detect when the doors are closed. These sensors are connected to a separate gateway device that uses KDDI's telecommunication network to send information to a remote server. This data provides real-time updates to a website telling the waiting person how many cubicles are currently available in a particular location.