Photoelectric sensor for food industry