Expert Insights

IoT Platform Architecture for Buildings and Plants: From Sensor to Event to Action

A workplace IoT platform is a chain of five layers: devices and tags, gateways, a message broker that decodes and buffers, a time-series store plus a rules engine, and the application layer that turns a rule hit into a ticket, an alarm or an attendance record. The design choices that matter are idempotent ingestion, a device registry as the source of truth, rules that run where the data is, and a single data model shared with the workplace applications so an event becomes an action without an integration project.

2 December 202611 min readShilakha Singhai

A temperature sensor that posts a number to a dashboard is not a platform. A platform is what makes that number open a helpdesk ticket when the AHU fails, raise a muster list when the siren sounds, or mark a contractor's attendance when a tag passes a gate. This article lays out the architecture PULSE uses and the decisions inside it; the structure is general to any building or plant IoT system that has to do more than chart.

Layer 1: devices and tags

Occupancy sensors, air-quality and temperature nodes, energy pulse counters, RFID gates, BLE worker tags and anchors. Each device has an identity, a firmware version, a payload format version and a location (zone, floor, site). The device registry that holds these is the source of truth for everything downstream; a message from an unknown device is quarantined, not processed.

Layer 2: gateways and backhaul

LoRaWAN gateways, BLE anchors and RFID readers forward messages to the broker over Ethernet, Wi-Fi, 4G or a private link. Gateways must buffer when backhaul drops and replay when it returns, with the original timestamp, so that a muster list computed after an outage is still correct. The private LoRaWAN design guide covers the radio side.

Layer 3: broker, decoding and idempotency

Messages land on a broker (MQTT at the edge, a durable queue in the platform). A decoder per payload version turns bytes into named fields; a message that arrives twice (gateway replay, duplicate reception by two gateways) must produce one event, so every message carries a device ID plus a counter or timestamp used as an idempotency key. This is the layer most home-grown systems skip, and it is why they double-count.

Layer 4: storage and rules

Decoded readings go to a time-series store (for charts, baselines and anomaly detection) and, in parallel, to a rules engine that evaluates in near real time. Rules reference the registry (which zone, which asset, which permit), time (shift, calendar) and state (how long has this condition held). Three rule patterns cover most of a building:

  • Threshold with hysteresis and dwell: CO2 above 1,000 ppm for 10 minutes opens a ticket; closing needs a drop below 900 ppm for 10 minutes, so the ticket does not flap.
  • Presence and absence: a tag inside a restricted zone without a permit; a desk occupied with no booking; an asset absent from its home zone past a grace period.
  • Baseline deviation: energy for a floor 30% above its weekday baseline at the same hour.

Rules run where the data is: for safety-critical sites, on the on-premise instance so an alarm does not depend on the WAN.

Layer 5: the hand-off into applications

This is where a platform earns its name. A rule hit is not a dashboard notification; it is an object the workplace applications understand:

Sensor eventBecomesIn which app
Temperature out of range in a server roomPriority ticket assigned to the HVAC vendor with SLAHelpdesk, Facility
Tag enters restricted zoneAlarm on the Class C beacon, alert to the zone supervisor, entry in the EHS logGeoFencer
Tag passes the plant gateAttendance event for that contractor, vendor-wise man-dayAttendance, contractor management
Desk occupied for 2 hours with no bookingUtilisation record; optional auto-booking for the badge holderSpace, Desk
Asset tag missing from its zoneAsset exception and a task for the custodianAssets

The reason this works without an integration project is the shared data model: the zone in the sensor registry is the same zone the helpdesk routes by, the worker on the tag is the same record the contractor module inducted, the asset is the same asset the finance team depreciates. That is the architectural argument for one platform over point tools, and it is the subject of Manoj Pawar's article on the application layer.

Operational concerns that decide reliability

  • Device health as a first-class signal. Battery, last-seen time and missed heartbeats generate their own tickets; a silent sensor is a facility problem before it is a data problem.
  • Time. Devices do not have reliable clocks; gateways stamp on receipt, and the platform reconciles replayed messages by sequence.
  • Versioning. Payload decoders, rules and firmware are versioned and the version is stored with every event, so a change in alert volume can be traced.
  • Multi-site. Sites are isolated tenants on the edge and consolidated in the cloud for reporting; a corporate dashboard reads from the cloud, never from a plant's edge server directly.
  • Privacy. Occupancy sensors count; they do not identify. Worker tags identify, and their data falls under DPDP, so retention and access are rules in the platform, not policies in a document.

Where UrSpayce fits

PULSE implements this architecture with gateways, anchors, tags and sensors on a patented private LoRaWAN network, an on-site or cloud rules engine, and a hand-off into the NEXUS applications that share one data model. It runs worker safety at NTPC at 96% accuracy and occupancy, air-quality and asset tracking at offices and plants across India and the GCC. Book a site assessment to map your sensors to the actions they should trigger.

Frequently asked questions

What are the layers of an IoT platform for buildings?

Devices and tags, gateways with buffering, a broker with decoding and idempotency, a time-series store plus a rules engine, and the application layer that turns rule hits into tickets, alarms and attendance records.

Why do IoT systems double-count events?

Because gateways replay buffered messages and two gateways may receive the same transmission. An idempotency key from device ID plus counter or timestamp ensures each message produces exactly one event.

Should IoT rules run in the cloud or on site?

For safety-critical sites, on an on-premise instance so alarms do not depend on the WAN; for corporate campuses with reliable connectivity, cloud rules are acceptable, with the cloud always used for multi-site reporting.

How does a sensor reading become a helpdesk ticket?

The rules engine evaluates thresholds with hysteresis and dwell, references the device registry for zone and asset, and creates a ticket object in the helpdesk with the right category, vendor and SLA, because both share one data model.

What is hysteresis in an IoT rule?

A gap between the trigger and the clear condition, for example CO2 above 1,000 ppm to open a ticket and below 900 ppm to close it, so a reading near the threshold does not open and close tickets repeatedly.

How is device health monitored?

Battery level, last-seen time and missed heartbeats are treated as signals in their own right and generate maintenance tasks, since a silent sensor is a facility problem before it is a data problem.

See UrSpayce in action

One AI-native platform for visitors, spaces, IoT, computer vision, AI agents and procurement — across India, the US and the GCC.

Book a free demo