Trying volume control of mp3 file with arduino flex sensor

Hi im very new to processing.

I want to control volume of a mp3 file with flex sensor.
So if I bend the sensor the volume goes down.

Arduino circuit works and I get the serial but it doesn’t work with processing.
Sound just breaks.

Can you guys give me any help? Thank you.