Code for accepting data from the sensors, packaging it, and uploading it to the server.