the output pins are not effected by serial reading

Gather a number into a chr array. When you see a CR that is carriage return, replace that with a null meaning a zero then use atof to convert it into a float variable.