Optical sensors operate by detecting light that interacts with tissues. These sensors are often used in conjunction with microscopes and imaging systems to visualize structures at the cellular and subcellular levels. Fluorescent markers and dyes can be used to highlight specific structures or molecules within the tissue, enhancing the contrast and detail observed.