Arduino button input to MAXMSP

Pete Blang's icon

I am trying to get MAX to read input data from my Arduino using a 4x4 16 key matrix keyboard to control a midi keyboard on the screen instead of my keyboard on my computer.

This is what I have so far ....

and I tried using this .....

in order to get MAX to read the input from my Arduino. Can anyone help me with this?

Source Audio's icon

It would be helpfull to know what arduino is sending.
I mean what each key is sending.
If you would upload the sketch ..