fixed logging of data values from arduino (works now)