In other examples, the reference can be used to compensate or correct for environmental variables (e.g., variables influenced by factors external to the device, such as temperature), that could affect the optical characteristics or apparent optical characteristics of the indicator molecule irrespective of the presence or concentration of the analyte.