VOlume control with proximity sensor

Thank you!
I want do it with data transfered to the laptop and done accordingly.