A spectrometer is a single pixel camera, I guess, but it isn't being used with imaging optics, and it isn't being used to stitch together a photograph.
In a general case you could embed some version of GFP instead of glyphosate resistance. Then you can set the system loose (within the field, lol) to actively interrogate plants, zapping intruders that fail their scans.
With visible light, all you have to go on is small differences in shades of green and shape of the leaves. With other spectra you'd have more cues.
That's actually the "weed control at scale" developed in conjunction with the tractor.
I'm not a fan of modern conventional agriculture. The abuse done to topsoil is terrible, and we need better systems. But new systems need to keep their eye on the ball and the ball is a John Deere pulling a 40-foot cultivator across a field while the "operator" reads twitter ( or <verb>s Clubhouse ) only looking up to mind the turns.
Everything starts somewhere, but just because your tech has ML and Laserbeams doesn't mean it passes the tool/toy test.
Bit of a pedantic note:
What other sensor could you use?
I'm grasping at straws (pun not intended) to figure out any other modality that could work as well in a giant field of psuedo-randomly mixed plants with the wind blowing chemical signatures all about.