Proximity sensor in manufacturing