Write measurements to SD card