A spectrometer for recording a spectrum, in particular in a wavelength range from 250 nm to 1150 nm, comprising: - a semiconductor chip arranged on the front of the spectrometer, - having a sensor array (4, 20, 30) o which is arranged on the rear of the semiconductor chip, o which comprises a matrix arrangement of at least two sensor pixels (21, 22), o wherein the sensor pixels (21, 22) are designed for detecting electromagnetic radiation, o wherein the sensor array (4, 20, 30) is designed for back lighting, - a filter array (5, 31) for filtering the radiation depending on the wavelength, o wherein the filter array (5, 31) comprises a matrix arrangement of at least two filter pixels (7, 23, 32), o wherein each filter pixel (7, 23, 32) forms a Fabry-Perot interferometer for the purpose of filtering, o and wherein the filter array (5, 31) is arranged towards the rear of the sensor array (4, 20, 30), a device for identifying the sensor pixels (21, 22) covered by the filter array (5, 31), having a non-volatile memory in which the coordinates of the filter array (5, 31) in relation to the sensor array (4, 20, 30) and/or the coordinate transformation of the filter array (5, 31) in relation to the sensor array (4, 20, 30) are stored in order to assign the sensor pixels (21, 22) to the individual filter pixels (7, 23, 32) based on the stored coordinates and/or coordinate transformation and/or to activate the individual filter pixels (7, 23, 32), depending on which of the sensor pixels (21, 22) are covered by the corresponding filter pixels (7, 23, 32), characterised in that the device for identifying the sensor pixels (21, 22) covered by the filter array (5, 31) is designed to deactivate the sensor pixels which are in the coverage at the respective edges of the individual filter pixels (7, 23, 32), based on the stored coordinates and/or coordinate transformation, and to form a perforated grid diaphragm so that the filtered light from different filter pixels (7, 23, 32) does not jointly influence one of the sensor pixels (21, 22). - a semiconductor chip arranged on the front of the spectrometer, - having a sensor array (4, 20, 30) o which is arranged on the rear of the semiconductor chip, o which comprises a matrix arrangement of at least two sensor pixels (21, 22), o wherein the sensor pixels (21, 22) are designed for detecting electromagnetic radiation, o wherein the sensor array (4, 20, 30) is designed for back lighting, o which is arranged on the rear of the semiconductor chip, o which comprises a matrix arrangement of at least two sensor pixels (21, 22), o wherein the sensor pixels (21, 22) are designed for detecting electromagnetic radiation, o wherein the sensor array (4, 20, 30) is designed for back lighting, - a filter array (5, 31) for filtering the radiation depending on the wavelength, o wherein the filter array (5, 31) comprises a matrix arrangement of at least two filter pixels (7, 23, 32), o wherein each filter pixel (7, 23, 32) forms a Fabry-Perot interferometer for the purpose of filtering, o and wherein the filter array (5, 31) is arranged towards the rear of the sensor array (4, 20, 30), a device for identifying the sensor pixels (21, 22) covered by the filter array (5, 31), having a non-volatile memory in which the coordinates of the filter array (5, 31) in relation to the sensor array (4, 20, 30) and/or the coordinate transformation of the filter array (5, 31) in relation to the sensor array (4, 20, 30) are stored in order to assign the sensor pixels (21, 22) to the individual filter pixels (7, 23, 32) based on the stored coordinates and/or coordinate transformation and/or to activate the individual filter pixels (7, 23, 32), depending on which of the sensor pixels (21, 22) are covered by the corresponding filter pixels (7, 23, 32), characterised in that the device for identifying the sensor pixels (21, 22) covered by the filter array (5, 31) is designed to deactivate the sensor pixels which are in the coverage at the respective edges of the individual filter pixels (7, 23, 32), based on the stored coordinates and/or coordinate transformation, and to form a perforated grid diaphragm so that the filtered light from different filter pixels (7, 23, 32) does not jointly influence one of the sensor pixels (21, 22). o wherein the filter array (5, 31) comprises a matrix arrangement of at least two filter pixels (7, 23, 32), o wherein each filter pixel (7, 23, 32) forms a Fabry-Perot interferometer for the purpose of filtering, o and wherein the filter array (5, 31) is arranged towards the rear of the sensor array (4, 20, 30),