A photoelectric sensor for distinguishing between plant material and soil