VOlume control with proximity sensor

The code is probably something to be directed more towards the 'processing' community as I would recommend doing the volume adjustment on the computer.

You can then use an arduino and ultrasonic sensor to send the distance data to the processing app running on the computer.

Mowcius