Code to read sensors on the analog pins of Intel Galileo and also get data via Serial /dev/ttyS0 and append to a file (csv) every 500ms