Case Studies

How to design a 21-day occupancy-driven cleaning pilot using cheap sensors to cut night shifts by 30%

How to design a 21-day occupancy-driven cleaning pilot using cheap sensors to cut night shifts by 30%

I ran a 21-day occupancy-driven cleaning pilot at one of our mid-sized office sites to test a simple hypothesis: can cheap occupancy sensors give us reliable enough data to cut night shifts by 30% without affecting cleanliness or client satisfaction? The answer was yes — with careful design, clear KPIs, and a practical decision framework. Below I share the exact blueprint I used so you can run the same pilot for your sites.

Why a 21-day pilot?

I chose 21 days because it's long enough to capture weekday/weekend patterns, a couple of atypical days (meetings, events), and staff learning curves. Shorter pilots gave noisy results; longer pilots delayed decisions. The 3-week window balances speed and statistical usefulness for occupancy trends.

Goals and success metrics

From the start I set three measurable goals:

  • Reduce night cleaning shifts by 30% while maintaining cleaning quality.
  • Keep client satisfaction ≥ current baseline (measured via quick staff/client surveys).
  • Achieve payback on sensor and minimal integration costs within 6 months via shift-hour savings.
  • Key performance indicators (KPIs):

  • Night shifts executed vs. baseline
  • Cleaning QA scores (predefined checklist)
  • Occupancy hours per zone per day
  • Client/staff cleaning complaints per week
  • Sensor selection — cheap, reliable and easy to deploy

    I tested a combination of low-cost sensors that are widely available and simple to manage. My priorities were: non-invasive install, battery life, data accessibility, and GDPR-friendly operation.

  • PIR motion sensors (e.g., Aqara or Sonoff PIR2) — detect movement, low cost, long battery life. Good for corridors, toilets, breakout spaces.
  • Door contact sensors — useful on main entry/meeting room doors to capture arrivals and meeting use.
  • Wi‑Fi presence detection (optional) — using the office AP logs or a cheap Raspberry Pi running Fing or similar to detect devices. Useful to cross-validate PIR data but needs careful privacy handling.
  • CO2 sensors (basic models) — not cheap as PIR but give added confidence in room occupation for busy meeting rooms.
  • I avoided cameras entirely to keep the pilot simple and privacy-friendly.

    Deployment plan and zones

    Divide the site into functional zones. For our pilot we used:

  • Reception and main circulation
  • Open-plan office desks (split into two halves)
  • Meeting rooms (3 rooms)
  • Breakout & kitchen area
  • Toilets & locker area
  • Sensor placement rules I followed:

  • PIRs mounted high on walls pointing along the length of the zone to maximise detection.
  • Door contacts on every meeting room and main entrance.
  • At least two sensors for large open-plan halves to avoid blind spots.
  • Data collection and simple architecture

    Keep the architecture minimal. For the pilot I used battery PIRs connecting to an inexpensive Zigbee gateway (CC2531/ConBee II) linked to a Raspberry Pi that logged all events into a simple PostgreSQL database. Alternative: many PIRs have Bluetooth/Wi‑Fi options and can push data to cloud dashboards (but that increases running costs).

    Data model: timestamp, sensor_id, event_type (motion/no-motion/contact open/close), battery, zone_id.

    Sampling rules:

  • Record motion events with timestamps; consider a sensor “occupied” for 10 minutes after the last motion event.
  • Aggregate into 15-minute buckets to smooth noise.
  • Run daily jobs to compute occupancy minutes per zone per day.
  • Decision rules to reduce night shifts

    I converted occupancy into operational rules. The rules must be simple so shift supervisors can apply them without ambiguity.

  • If total occupancy minutes in a zone during the preceding 7 days averaged < 30 minutes per night AND occupancy in the last 3 nights is < 20 minutes, convert that zone’s night shift to an on-demand morning clean.
  • Meeting rooms: if average number of meetings per day in the last 7 days < 1 and < 10% of meetings had >6 attendees, schedule cleaning in morning only.
  • Kitchen/breakout/toilets are always on nightly rota (hygiene priority).
  • Any complaint or failed QA triggers immediate reinstatement of the night clean for that zone for 7 days.
  • These thresholds are conservative — they keep hygiene-critical areas protected while targeting low-use desk zones where night cleaning yields little benefit.

    Communication and stakeholder buy-in

    Before switching any shifts, I briefed three groups:

  • Client contact and facilities manager — explained pilot goals, shared data examples, and agreed acceptable thresholds and fallback process.
  • Cleaning supervisors and night operatives — explained why changes may reduce shifts and ensured willingness for on-call response if needed.
  • Employees — short notice board and email reassuring them hygiene standards remain; published times when rooms are cleaned.
  • Transparency matters. I shared dashboards and a simple FAQ so staff knew occupancy data was anonymous (no cameras, no personal device tracking in the dashboard). A one-week feedback window was kept active.

    Sample 21-day timeline

    DayActivity
    1–3Install sensors, verify data flow, baseline night shifts
    4–10Collect occupancy, refine buckets, start QA checks
    11Apply decision rules to propose reduction list — review with client & supervisors
    12–21Implement reduced night shifts for selected zones; monitor QA & complaints; reinstate if necessary

    Quality assurance and fallback

    I kept a strict QA process: cleaning supervisor visits and scores a checklist twice weekly for switched-off zones. Scores had to match baseline within a 10% margin. A single justified complaint or a QA drop below threshold triggered immediate reinstatement of night cleaning for 7 days and a root-cause review.

    Costs and expected savings

    Example cost breakdown for our trial site:

    ItemCost (GBP)
    10 PIR sensors (Aqara)£120
    Zigbee gateway + Raspberry Pi£80
    Installation & config (1 day)£200
    Misc (cables, mounts)£50
    Total one-off£450

    Night shift saving: if one night operative = £90/night (incl. NI), and the site ran 5 night shifts/week, cutting 30% equates to 1.5 fewer shifts/week = ≈£135/week savings → payback under 4 weeks. Even with conservative numbers, ROI looked compelling.

    Results I observed

    Over the 21 days we reduced night shifts by 33% for targeted zones with no measurable drop in QA scores and zero justified complaints. The occupancy data revealed predictable patterns: certain desk blocks were virtually unused after 4pm, while small meeting rooms spiked briefly and benefited from targeted morning cleans. The sensors were cheap and robust; battery changes were not an issue in the pilot timeframe.

    Two practical lessons:

  • Cross-validation saves mistakes — spot-check with a manual presence log for the first week.
  • Be conservative on hygiene areas — toilets and kitchens should remain on routine cleans unless you have near-perfect sensor coverage.
  • Risks and mitigations

    Key risks I planned for:

  • False negatives (no motion detected while someone remained seated) — mitigated by longer occupancy windows and pairing door sensors or Wi‑Fi presence for high-risk zones.
  • Staff dissatisfaction — mitigated by clear communication and fast reinstatement policy.
  • Data privacy concerns — mitigated by avoiding cameras and storing only aggregated occupancy minutes, not device IDs.
  • If you’d like, I can share the scripts I used to aggregate sensor events into 15-minute buckets and the simple dashboard layout we used for the client. Running a low-cost occupancy pilot is one of the fastest ways I’ve seen to reduce unnecessary labour costs while keeping workplaces clean and users happy.

    You should also check the following news:

    How to train night cleaners on lone-worker safety with a 90-minute practical kit and measurable compliance checkpoints
    Health & Safety

    How to train night cleaners on lone-worker safety with a 90-minute practical kit and measurable compliance checkpoints

    Training night cleaners on lone-worker safety doesn’t have to be a dry, compliance-only exercise....