Systems, methods, and computer-readable media are presented herein for providing lower level physical-layer gateway functionalities and upper-level application functionalities; a system designed with flexible configurations in order to support a wide range of connected applications. The system includes a processor that executes machine instructions to perform operations. The operations comprise: receiving sensor data from a sensor device located in a building; converting the sensor data from a raw state to a physical measurement; and activating an abatement device situated in the building as a function of the physical measurement.