The Serial Input Basics Tutorial describes how to parse data like this. However, IMO, this is the wrong technique for transferring multiple data elements (especially numeric data) over an inherently packetized channel. See my Post #10 and Post #13 above.