VOlume control with proximity sensor

Yes.
which sensor is ideal for 3-4 meters of reading?
How do i make arduino read the values and adjust the volume?