Code for receiving the sensor data, packaging it, and uploading it.