Sending multiple numbers to Arduino via Serial

looks like you have a timer to get new data ( 10 sec )
but that data you then send every draw loop ( possibly 60 times per sec ) to arduino
( move the } down )

for the sending on both sides i recommend a CSV type of Lines
1023,1023,1023,1023CR ( arduino might send CR LF ( catched by your trim() )
so pls use ‘,’ and writeline and no delay() at all, ( instead ‘;’ and ‘e’ )
as the original sender is processing there is the timer (10 sec ),
arduino send back a CSV line with the already understood values…

on the processing side use
https://processing.org/reference/libraries/serial/serialEvent_.html
and split on ‘,’

on arduino side that command serialEvent is board depending.
use
https://www.arduino.cc/reference/en/language/functions/communication/serial/readstringuntil/
to catch the line and then split it or try use your parseInt()