A system for determining an analyte concentration in a fluid sample (e.g., glucose) comprises a light source, a detector, and a central processing unit. The detector is adapted to receive spectral information corresponding to light returned from the fluid sample being analyzed and to convert the received spectral information into an electrical signal indicative of the received spectral information. The central processing unit is adapted to compare the electrical signal to an algorithm built upon correlation with the analyte in body fluid. The algorithm is adapted to convert the received spectral information into the analyte concentration in body fluid. Spectral information is delivered from the central processing unit to the light source and used to vary the intensity and timing of the light to improve the accuracy of conversion into analyte concentration.