In histology, optical sensors are primarily used in microscopy and image analysis. These sensors facilitate the examination of tissue samples by detecting and measuring light intensity and wavelength. The data collected can then be transformed into high-resolution images, enabling detailed observation of cellular structures.