Fluorescence sensors detect the presence of specific proteins or other molecules within tissue samples by using fluorescent dyes or tags. When these dyes bind to their target molecules, they emit light at specific wavelengths when exposed to a certain type of light source. This emitted light can be detected and measured, allowing researchers to visualize the distribution and concentration of the targeted molecules within the tissue.