material detection system