An image sensor, characterized in that the image sensor comprising: an illumination part illuminating a subject; a lens part forming an optical image of the subject; an imaging part generating an image based on the optical image; and a processing part executing a process using the image, wherein the processing part is provided in a sensor body, any combination of the illumination part, the lens part, and the imaging part selected from a plurality of illumination parts of different types, a plurality of lens parts of different types, and a plurality of imaging parts of different types is attachable to the sensor body, the illumination part comprises a non-volatile memory having a first storage area that is not rewritable by a user of the image sensor and a second storage area that is rewritable by the user, wherein the illumination part stores information related to the illumination part in the first storage area of the non-volatile memory of the illumination part, the lens part comprises a non-volatile memory having a first storage area that is not rewritable by the user and a second storage area that is rewritable by the user, wherein the lens part stores information related to the lens part in the first storage area of the non-volatile memory of the lens part, the imaging part comprises a non-volatile memory having a first storage area that is not rewritable by the user and a second storage area that is rewritable by the user, wherein the imaging part stores information related to the imaging part in the first storage area of the non-volatile memory of the imaging part, and the processing part specifies a combination of the illumination part, the lens part, and the imaging part attached to the sensor body based on the information respectively read from the memory of the illumination part, the memory of the lens part, and the memory of the imaging part, the processing part predicts deterioration or lifetime of the image sensor based on the information on a use start date or a use status of the image sensor and notifies the user of a calibration or maintenance time. an illumination part illuminating a subject; a lens part forming an optical image of the subject; an imaging part generating an image based on the optical image; and a processing part executing a process using the image, wherein the processing part is provided in a sensor body, any combination of the illumination part, the lens part, and the imaging part selected from a plurality of illumination parts of different types, a plurality of lens parts of different types, and a plurality of imaging parts of different types is attachable to the sensor body, the illumination part comprises a non-volatile memory having a first storage area that is not rewritable by a user of the image sensor and a second storage area that is rewritable by the user, wherein the illumination part stores information related to the illumination part in the first storage area of the non-volatile memory of the illumination part, the lens part comprises a non-volatile memory having a first storage area that is not rewritable by the user and a second storage area that is rewritable by the user, wherein the lens part stores information related to the lens part in the first storage area of the non-volatile memory of the lens part, the imaging part comprises a non-volatile memory having a first storage area that is not rewritable by the user and a second storage area that is rewritable by the user, wherein the imaging part stores information related to the imaging part in the first storage area of the non-volatile memory of the imaging part, and the processing part specifies a combination of the illumination part, the lens part, and the imaging part attached to the sensor body based on the information respectively read from the memory of the illumination part, the memory of the lens part, and the memory of the imaging part, the processing part predicts deterioration or lifetime of the image sensor based on the information on a use start date or a use status of the image sensor and notifies the user of a calibration or maintenance time.