Theremin as controller with MaxMSP

Hello there, I am trying to modify this code to use the theremin to get control data into maxMSP, rather than outputting a signal to speaker.

http://interface.khm.de/index.php/lab/experiments/theremin-as-a-capacitive-sensing-device/

It prints the values fine in the serial monitor, so it definitely works but I'm unsure how to send the data to MaxMSP. I've set up Max to receive data on the different analog and digital ports, and can also receive midi data.

It mentions using the 'tune' value for control/midi purposes but I still can't figure it out.
Help!
Thanks!

Matt