added timeout to serial connection so doesn't hang on ser.readline()