A multi-channel spectrometer device for detecting and/or quantifying a predetermined analyte of interest in a medium, the spectrometer device comprising: - an input for receiving a radiation signal carrying spectral information about the constituents in the medium in its spectral composition, - a first plurality of optical modulators operably connected to said input, each optical modulator of said first plurality of modulators being adapted for transforming said radiation signal in accordance with a first spectral transfer function, - a second plurality of optical modulators, disjunct from the first plurality of optical modulators, operably connected to said input, each optical modulator of said second plurality of modulators being adapted for transforming said radiation signal in accordance with a second spectral transfer function, the second spectral transfer function being different from the first spectral transfer function, - at least one detector element operably connected to said first and second plurality of optical modulators (12,13) and adapted for generating a plurality of output signals indicative of the intensity of each of the plurality of transformed radiation signals (8,9) of the first and the second plurality of optical modulators (12,13), and - a splitter for splitting the radiation signal received by the input into a plurality of waveguides, each waveguide feeding the radiation signal into a corresponding optical modulator, wherein the ratio of the number of optical modulators in said first plurality of optical modulators and the number of optical modulators in said second plurality of optical modulators is determined based on the ratio of intensities of a reference spectrum of said predetermined analyte of interest transformed by said first spectral transfer function and said reference spectrum transformed by said second spectral transfer function. - an input for receiving a radiation signal carrying spectral information about the constituents in the medium in its spectral composition, - a first plurality of optical modulators operably connected to said input, each optical modulator of said first plurality of modulators being adapted for transforming said radiation signal in accordance with a first spectral transfer function, - a second plurality of optical modulators, disjunct from the first plurality of optical modulators, operably connected to said input, each optical modulator of said second plurality of modulators being adapted for transforming said radiation signal in accordance with a second spectral transfer function, the second spectral transfer function being different from the first spectral transfer function, - at least one detector element operably connected to said first and second plurality of optical modulators (12,13) and adapted for generating a plurality of output signals indicative of the intensity of each of the plurality of transformed radiation signals (8,9) of the first and the second plurality of optical modulators (12,13), and - a splitter for splitting the radiation signal received by the input into a plurality of waveguides, each waveguide feeding the radiation signal into a corresponding optical modulator,