Fluorescent dyes function by absorbing light at a particular wavelength and emitting it at a longer wavelength. This property allows them to be used as markers in various biochemical assays. The specificity and sensitivity of fluorescent dyes make them ideal for detecting and measuring the presence of toxins within cells or tissues.