A sensor element comprising: a light source configured to emit light to the exterior of the sensor element, a light detector configured to detect light that enters the sensor element, and a window element that covers at least one of the light source and the light detector, wherein the window element comprises a plurality of adjacent optical fibers.