three light sensor in arduino controlling the volume of three wav files in max ?

zelpy's icon

I want to let three light sensors in arduino control the volume of three wav files in max. (each light sensor controlls each volume independantly)
This is what I have done so far , and I am stucked.
What do I need to do next ?
I attach arduino and max patch I made.
Thank you.

5428.threewavs.maxpat
Max Patch
Steven Miller's icon

There are some pretty fundamental parts missing from both the sketch and the patcher.

On the Arduino side, have a look at the following: http://arduino.cc/en/Tutorial/SerialCallResponse
On the Max side, look into the [serial] object and the following: https://cycling74.com/docs/max6/dynamic/c74_docs.html#communicationschapter02

Hope this helps.