.
value + ".\n"); } void serialEvent() { while (Serial.available()) { char in = (char) Serial.read(); if (in == '.' || in == ',') { parts[index] = String(buffer); buffer = ""; index++; if (index > 2) { index = 0; } } else { buffer += in; } if (in == '.') { index = 0; buffer = ""; handle(); } } } This