GPS and sensor data logger only works when connected to serial connection