Sensor configuration and aggregation code.