Read from serial, write csv file and upload it