How to use data from accelerometer to control camera and perspective in Processing

For the port trouble
I am no expert

See LED CONTROL Serial myPort vs. Serial port - #2 by noahbuddy