I am trying to complete a program but I am new in this world if someone can help me with the code I will be so thankfull. Thanks

well you removed SendDataToProcessing () which i believe is the point

from what little experience i have, Processing support graphics on a PC using an IDE similar to Arduino where a Serial interface can be used to communicate between processes/devices. my experience is Processing generates graphics based on input from the Arduino