Serial connection debugged

Serial connection debugged