floatFromString() function

A simple function to read a floating point value from the serial port
until a delimiter is reached, and return it.