Methods, sensors, and systems for determining a concentration of glucose in a medium of a living animal are disclosed. Determining the glucose concentration may involve emitting excitation light from a light source to indicator molecules, generating a raw signal indicative of the amount of light received by a photodetector, purifying and normalizing the raw signal, and converting the normalized signal to a glucose concentration. The purification may involve removing noise (e.g., offset and/or distortion) from the raw signal. The purification and normalization may involve tracking the cumulative emission time that the light source has emitted the excitation light and tracking the implant time that has elapsed since the optical sensor was implanted. The purification and normalization may involve measuring the temperature of the sensor. The purification, normalization, and conversion may involve using parameters determined during manufacturing, in vitro testing, and/or in vivo testing.本發明揭示用於測定活動物之介質中之葡萄糖濃度的方法、感測器及系統。測定該葡萄糖濃度可包括自光源向指示劑分子發射激發光;產生指示光偵測器所接收之光之量的原始訊號;對該原始訊號進行純化及正規化;及將該經正規化之訊號轉換成葡萄糖濃度。該純化可包括自該原始訊號中移除雜訊(例如偏移及/或失真)。該純化及正規化可包括追蹤該光源發射該激發光之累積發射時間及追蹤自該光學感測器植入以來已經過之植入時間。該純化及正規化可包括量測該感測器之溫度。該純化、正規化及轉換可包括使用在製造、活體外測試及/或活體內測試期間所測定之參數。