Logging data with Raspberry Pi