Detect grass in grass catcher

A proxiimity sensor????? The ones I know react on metal. Iron, yes, aluminum for some of them.
What do I miss?