Optical sensor array for metabolic monitoring