A system for identifying a reservoir used with a fluid delivery device. The system includes a reservoir comprising a housing for holding fluid and a colored marking located on a surface of the housing. A fluid delivery device includes a compartment for receiving and operatively coupling with the reservoir. A light source shines light on the colored marking of the reservoir. A color sensor detects wavelengths reflected and/or refracted from the colored marking due to the light shined on the colored marking. A processor of the delivery device determines a color of the colored marking from the detected wavelengths and ascertains information related to the reservoir or the fluid in the reservoir corresponding to the determined color, wherein the processor operates the fluid delivery device according to the ascertained information, wherein the information may include a reservoir type and/or medication type.