1. A method comprising: receiving, at a gateway entity comprising a processor, input data from a primary sensor communicatively coupled to the gateway entity; determining, using the processor of the gateway entity, whether to process the data locally at the gateway entity or to forward the data to another device communicatively coupled to the gateway entity, wherein the other device includes processing logic for processing the input data that is different from processing logic applied by the gateway entity; and if the processor determines that the input data should be processed locally, the processor processes the data, generates an action to be taken in response to the input data, if the action is a configuration update, the processor generates a configuration update that changes a manner in which the sensor processes future data, and forwards the configuration update to the primary sensor, if the action is not a configuration update, the processor forwards the action to an output device communicatively coupled to the gateway entity, or if the processor determines that the input data should not be processed locally, the gateway entity forwards the input data to the other device, receives an action to be taken in response to the input data from the other device, and forwards the action to the output device.