Aggregating sensor data in the cloud