Having issues with the Serial Monitor needing to be opened for my entire code to work

if i get rid of that it still requires the serial monitor to open :confused: