This first minimal approach to interface alternative user interface elements, like potentiometers or sensors comes along with a proper oldschool …
Simple communication between Processing and Arduino via Firmata