myString = trim(myString); // split the string at the commas // and convert the sections into integers: int sensors[] = int(split(myString, ','));