Proximity sensor for automotive painting