Object detection-based directional control of light and sound