Wisdom Connects Everything, Enable Digitalization
Email Us
Call Us Now
about banner

Smart Restroom System Case Study: From Finding a Free Stall to Managing Public Toilets

Public toilets are a small but heavily used part of urban infrastructure. For visitors, the need is immediate: find an available stall without walking down the row and pushing every door. For facility teams, the questions are different: is the air quality acceptable, are the deodorizer units actually running, and how many people use the space each day?

This SUNPN smart restroom system case study looks at how those questions were brought onto a single guidance display. All details below come from the project's site photos, function description and sensor documentation. Figures visible on the interface are real-time snapshots and change with site conditions; they are shown to explain the fields on the screen, not as fixed acceptance values.

Wall-mounted smart restroom guidance display installed in a public restroom corridor.

What This Smart Restroom System Includes

The project combines four information streams — stall occupancy, air quality, visitor flow and equipment status — into one restroom guidance system.

Module

Configuration confirmed in project materials

Stall detection

Laser occupancy sensors, addresses 1–8 for the public area

Door signage

RS485 backlit status signs, male 1–3 / female 4–8

Air quality

One five-in-one sensor in each of the male and female restrooms

Deodorizing

Two units connected through an IO controller to the gateway

People counting

One shared sensor for male and female restrooms

Gateway

OKEDGE gateway (written as "okedge" in the project files)

Display

Smart restroom guidance screen with floor plan and status legend

Auxiliary

Weather shown when online; two title bars editable by the user


Green "occupied / vacant" status signs above stall doors and ceiling-mounted occupancy sensors.

Stall occupancy: laser sensors plus RS485 door signs

Each public stall is mapped to a laser occupancy sensor at address 1–8. The door signs use RS485 backlit panels, with male restroom addresses 1–3 and female restroom addresses 4–8. In the site photos, a green status sign sits above each stall door and a small circular sensor is mounted on the ceiling above it.

Status is collected in real time and mirrored on the guidance display. The floor plan uses two colours: green for "available" and red for "in use". In one interface snapshot, the female restroom showed 3 vacant / 2 occupied and the male restroom 2 vacant / 1 occupied.

Air quality: five-in-one sensors with configurable thresholds

The function description records one five-in-one environmental sensor in each restroom. The display presents temperature, relative humidity, ammonia, hydrogen sulfide and PM2.5, then classifies the environment as Excellent, Good or Poor according to configured upper and lower limits.

In the sample interface, the female restroom was rated Good and the male restroom Excellent, with both sides showing 25.6 °C and 74% RH. The classification is software-driven, so thresholds should be agreed with the client during commissioning rather than treated as a factory-default standard.

People counting: one shared sensor, combined reporting

Male and female restrooms share a single people-counting sensor. The guidance screen reports "today's visitors" and "cumulative visitors" as combined figures. The example snapshot shows 256 and 4,545 respectively. If a project needs gender-separated counts, the sensor configuration must be specified at the design stage.

Deodorizer status on the same screen

Two deodorizer units connect through an IO controller to the OKEDGE gateway, and the software interface shows whether each unit is on or off. In the sample view, both were shown as on. Putting environmental readings and equipment status side by side helps operators judge whether ventilation measures are active without walking to each unit.

A wall-mounted deodorizing and sterilizing machine in the bathroom.

System Architecture: How Data Reaches the Display

Based on the system topology drawing, the data path has four layers:

  1. Sensing layer — laser occupancy sensors, five-in-one environmental sensors and the people-counting sensor collect stall, environment and flow data.
  2. Access layer — RS485 bus, 4-core cable and 2×0.5² communication cable carry field signals; a 5-port switch handles network devices; 220 V AC is stepped down to 12 V by a power box.
  3. Control layer — the OKEDGE gateway manages addresses, aggregates status and converts protocols.
  4. Presentation layer — the guidance display connects via HDMI/RJ45 and presents the floor plan, statistics, notices and weather.

This separation matters in practice. Field devices only collect and execute; address management, threshold logic and display rules sit in the gateway and software. Changing a display rule does not require reworking every sensor on site.

One limitation is documented: weather is fetched online and disappears when the network is down. Core stall and environmental data remain on the local collection chain, while remote platform integration requires a stable connection.


Practical Value for Facility Teams

For visitors. Door signs and the entrance display show availability before someone enters the stall area, reducing repeated door checks and awkward waiting.

For operations. Temperature, humidity, gas readings, deodorizer state and visitor counts appear in one view. Staff can see whether ventilation is running and plan cleaning around observed flow rather than fixed guesses.

For management. The project function description states that data needs to be integrated with a new restroom platform. Field naming, reporting intervals, device addresses and interface protocols should therefore be agreed before installation, so the system does not need a second round of cabling later.


Implementation Insight: Auto-Learning vs Manual-Learning Mode

Long-term accuracy often depends on a setting that is easy to overlook. The sensor documentation describes two working modes for the laser occupancy sensor.

  • Auto-learning mode (factory default): the sensor learns a reference distance at every power-on. A measured distance below the reference means occupied; otherwise it means vacant.
  • Manual-learning mode: the installer sets the reference distance, which is stored in memory. At each power-on the controller reads that stored value and skips the learning step.

The documented failure case is specific. Some restrooms are powered off overnight and back on in the morning. If a person is inside a stall at the moment power returns, auto-learning mode records the wrong reference distance. After that, a person entering the stall may still be shown as vacant.

The recommended approach is to switch to manual-learning mode once the sensor position is fixed and write a stable reference distance. For sensors not connected to an RS485 bus, changing the mode normally means removing the unit and wiring it up — a disruptive job on site.

Newer units address this: wireless LoRa laser sensor V2.8 and standard laser sensor V2.1 or above support a forced switch through six repeated power-on / power-off cycles. After power-on, a long beep of about two seconds marks a countdown window of roughly 13 seconds; cutting power during that window stores one count. Repeating the cycle six times forces manual-learning mode and triggers one new distance learning cycle, with a different beep pattern confirming the change. Where sensors share one supply, the whole group can be switched by cycling that supply.

For integrators, this is a commissioning checklist item: record the final mode and reference distance in the handover document, and verify that door signs and the display match after switching.


Frequently Asked Questions

Does a smart restroom system require replacing the existing stall partitions?
Not necessarily. In this case, RS485 backlit signs were added above existing stall doors and sensors were mounted on the ceiling. The work focused on status capture and presentation rather than structural changes. Final installation depends on the ceiling, door and cabling conditions on site.

 

Are the Excellent / Good / Poor ratings fixed standards?
No. The ratings are derived from configured upper and lower parameter limits, so they can be adjusted to the management requirements of each venue.

 

Can the display still show weather without a network connection?
No. Weather is fetched online and is not shown offline. Stall status and environmental data mainly follow the local collection chain, but a stable network is needed for remote platform integration.

 

Are visitor numbers counted separately for male and female restrooms?
Not in this case. One people-counting sensor is shared, so the display reports combined daily and cumulative figures. Gender-separated counts must be specified at the design stage.

 

What should buyers confirm before commissioning a supplier?
Confirm the address mapping, whether air-quality thresholds are configurable, whether people counting is combined or separated, the sensor learning mode used after overnight power loss, and the interface protocol, fields and reporting cycle for platform integration.

 

A smart restroom system is not defined by the size of its screen. Its value lies in turning stall availability, environmental readings, equipment status and visitor flow into one readable data set. This SUNPN case uses laser occupancy sensors to answer "is anyone here", five-in-one sensors to answer "what is the air like", and a gateway plus guidance display to decide "where do operators see it".

For public restroom modernisation, the details that determine long-term performance are address planning, configurable thresholds, a clear counting definition, the correct sensor learning mode and an agreed platform interface. Settling those before installation is what keeps the numbers on the screen trustworthy.

To discuss configuration options, interface requirements or a site survey for this smart restroom system, contact SUNPN through the official channels listed on this site.


【XF】

Looking for best partner for your next construction works?