The main program is "ControlAudioDevice+Volume.py". It reads values from the serial input of an arduino and performs according actions through nircmd.
Incoming values are from an ultrasound distance sensor(0-500, distance in cm) or from a potentiometer(1000-1100, percent).
The distance read from the sensor controls the system audio device. The read values from the poti control the system volume.