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

If you suspect your GPS isn't working, it is quite easy to connect directly to the
PC through the USB/serial adaptor and see what it is outputing. You can use
the serial monitor for this or a program such as MiniGPS or several similar ones.