I worked on two things today that used an Arduino to talk to one of the serial ports. Then by reading the input of the serial port using Processing it was able to respond to changes made to a variety of input devices.

Experiment 1
( The VirtualColorMixer tutorial to get Arduino to talk to Processing )

This colour adjustment was done using three potentiometers to control the RGB values from an Arduino board to the serial port (really the USB port) which was then read by a script in Processing to change colour on screen.

( Note: we just tried this on a Windows PC and had to turn off the Arduino GUI software and change the line of code that identifies the serial port, commenting out the line that works on the Mac OS )

Experiment 2
( The tutorial: LDR light sensor from ARDUINO meets PROCESSING )

Using one LDR light sensor and a resistor with Arduino to control a script in Processing.

One light sensor and one LDR light sensor to control some stuff in Processing.