Reads data from the serial port, validates it, saves to a csv file and uploads to webserver