Optical biosensors function by detecting changes in light properties such as absorption, fluorescence, or reflectance when a biological element interacts with a target analyte. The biological component, often an enzyme, antibody, or nucleic acid, specifically binds to the target analyte, causing a measurable optical signal that is then translated into an electronic signal for data analysis.