Datalogger

There is no reason to use a String. Open the file. Then loop through the array of pins, reading a value and writing to the file. Then, close the file.

The String class has known issues. Don't use it (like this) just to be lazy.