Industrial proximity sensor for material sorting