A system for sensing crop samples and deriving information therefrom comprising: a lens; a filter; a photosite array; at least one illumination source; and, an electronics module; wherein the filter is placed between the lens and the photosite array; wherein the illumination source directs light containing a known set of wavelengths onto a crop sample; wherein the lens is arranged to pick up light reflected by the crop sample and to direct it into the filter; wherein the filter is arranged to allow light to pass into different parts of the photosite array such that certain locations on the photosite array only get certain frequencies of the reflected light; wherein the electronics module is electrically connected to the photosite array and is arranged to determine which parts of the photosite array received light and what frequency the light received was; characterised in that the electronics module is arranged to analyse the optical data received by the photosite array; divide the elements of the photosite array into subsets of pixels; determine the spread of each subset in a colorspace; select a reference distribution comprising a representative number of subsets with the smallest spreads; compare the reference distribution to a total distribution to determine pixels that do not correspond to intact grain; the total distribution comprising the entire list of subsets; wherein the analysis of the optical data is used to determine the composition of different parts of the crop sample. a lens; a filter; a photosite array; at least one illumination source; and, an electronics module; wherein the filter is placed between the lens and the photosite array; wherein the illumination source directs light containing a known set of wavelengths onto a crop sample; wherein the lens is arranged to pick up light reflected by the crop sample and to direct it into the filter; wherein the filter is arranged to allow light to pass into different parts of the photosite array such that certain locations on the photosite array only get certain frequencies of the reflected light; wherein the electronics module is electrically connected to the photosite array and is arranged to determine which parts of the photosite array received light and what frequency the light received was; characterised in that the electronics module is arranged to analyse the optical data received by the photosite array; divide the elements of the photosite array into subsets of pixels; determine the spread of each subset in a colorspace; select a reference distribution comprising a representative number of subsets with the smallest spreads; compare the reference distribution to a total distribution to determine pixels that do not correspond to intact grain; the total distribution comprising the entire list of subsets; characterised in that the electronics module is arranged to analyse the optical data received by the photosite array; divide the elements of the photosite array into subsets of pixels; determine the spread of each subset in a colorspace; select a reference distribution comprising a representative number of subsets with the smallest spreads; compare the reference distribution to a total distribution to determine pixels that do not correspond to intact grain; the total distribution comprising the entire list of subsets; wherein the analysis of the optical data is used to determine the composition of different parts of the crop sample.