Problem with MIDI.sendControlChange()

I am trying to send midi signals through Arduino through USB via loop MIDI and hairless MIDI, my code works, however, it will only send midi signals after I have opened the serial monitor one time before I open the gate to the Hairless MIDI.

EDIT: I ran some troubleshoots and tests, I narrowed it down to my millis(); commands in my functions? does system time not start unless I open up Serial monitor?

EDIT: a bit extra info in case if it's board specifics: I'm using NANO 33 BLE SENSE, sending MIDI signals dependant on the onboard IMU.

EDIT: millis works without the serial monitor on so now I'm thinking it gets stuck somewhere when the serial monitor is not on... But really not sure where

EDIT: it just doesn't go into the main loop without me opening up serial monitor up for some reason.

EDIT: I'm thinking now maybe that my COM doesn't start until I start serial monitor because that a new port is created for uploading. - Yup, it's a problem with the Arduino nano 33 ble, now sure how to change the ports for transmission without opening up serial monitor though.

LSM4.ino (7.21 KB)