Something bothered me about my answer. Use this instead:
const int BUFFSIZE = 6;
void loop() {
int bytesRead;
if (Serial.available() > 0){
bytesRead = Serial.readBytesUntil('\n', incomingStr, BUFFSIZE );
ShowMeWhatArrived();
// more of your code...
} // End of loop()
void ShowMeWhatArrived(int bytesRead)
{
incomingStr[bytesRead] = '\0'; // Make sure we can treat it as a string
Serial.print("Direction: ");
Serial.print(incomingStr[0]);
Serial.print("Left-Right: ");
Serial.print(incomingStr[1]);
Serial.print("Magnitude: ");
Serial.print(atoi(&incomingStr[2]));
}
There...more better! Now if a one or two digit value comes in, the null is placed in the correct position.