pls check out the structure used here:
https://processing.org/reference/libraries/serial/serialEvent_.html
String[] SensorInput= split(serial, ‘,’);
if (SensorInput >= 1000){
a string array can not be compared with a number
as you not send “,” by arduino ( possibly later make longer CSV lines )
you can try
if ( int(SensorInput[0]) >= 1000)