Serial data from Arduino to Processing does not update

Hello,

This is what your code (with some added code) is doing:

String [] sensors0;
int [] sensors1;

void setup() 
  {
  String s = ",0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0";
  //https://www.arduino.cc/reference/en/language/functions/communication/serial/println/  
  String ard = s + "\r\n";
  print(ard);
  
  //myString = myPort.readStringUntil('\n');
  String myString = ard;

  if (myString != null) 
    {
    myString = trim(myString);
    println(myString);
    sensors0 = (split(myString, ','));
    printArray(sensors0);
    sensors1 = int(split(myString, ','));
    printArray(sensors1);
    }
    
  println(int(""));
  }    
Console output:
,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0
,0,0,1,0,2,0,3,0,4,0,5,0,6,0,7,0,8,0,9,0,10,0,11,0
[0] ""
[1] "0"
[2] "0"
[3] "1"
[4] "0"
[5] "2"
[6] "0"
[7] "3"
[8] "0"
[9] "4"
[10] "0"
[11] "5"
[12] "0"
[13] "6"
[14] "0"
[15] "7"
[16] "0"
[17] "8"
[18] "0"
[19] "9"
[20] "0"
[21] "10"
[22] "0"
[23] "11"
[24] "0"
[0] 0
[1] 0
[2] 0
[3] 1
[4] 0
[5] 2
[6] 0
[7] 3
[8] 0
[9] 4
[10] 0
[11] 5
[12] 0
[13] 6
[14] 0
[15] 7
[16] 0
[17] 8
[18] 0
[19] 9
[20] 0
[21] 10
[22] 0
[23] 11
[24] 0
0

:)