Micromechanical component comprising: a light window of a housing of the micromechanical component; a mirror element, which is adjustable relative to the light window from a first position about at least one rotation axis (14, 16) into at least one second position; an optical sensor (34a, 34b) having a detection surface, said optical sensor being designed to determine a light intensity and/or an impingement position of an impinging light beam on the detection surface and to provide a corresponding sensor signal (A, B), wherein the light window, the mirror element in the first position and the detection surface are arranged with respect to one another such that a light beam which is deflected by the mirror element and impinges on the light window is partly transmitted through the light window and partly reflected back into the interior of the micromechanical component, and the portion, reflected at the light window of the light beam deflected onto the light window by means of the mirror element at least partly impinges on the detection surface; and an evaluation device designed to define, taking account of the sensor signal (A, B) provided by the optical sensor (34a, 34b), information regarding a current position of the mirror element relative to the light window and/or regarding a current intensity of the deflected light beam, characterized in that the evaluation device is additionally designed to identify a standstill of the mirror element on the basis of the temporal profile of the sensor signal and, if a standstill of the mirror element is identified for the predefined time duration, to output a switch-off signal to a light source emitting the deflected light beam or, if a standstill of the mirror element is identified for a predefined time duration, to adjust the mirror element by means of at least one spring such that the deflected light beam is directable onto a diaphragm of the micromechanical component, said diaphragm being arranged at a light window. a light window of a housing of the micromechanical component; a mirror element, which is adjustable relative to the light window from a first position about at least one rotation axis (14, 16) into at least one second position; an optical sensor (34a, 34b) having a detection surface, said optical sensor being designed to determine a light intensity and/or an impingement position of an impinging light beam on the detection surface and to provide a corresponding sensor signal (A, B), wherein the light window, the mirror element in the first position and the detection surface are arranged with respect to one another such that a light beam which is deflected by the mirror element and impinges on the light window is partly transmitted through the light window and partly reflected back into the interior of the micromechanical component, and the portion, reflected at the light window of the light beam deflected onto the light window by means of the mirror element at least partly impinges on the detection surface; and an evaluation device designed to define, taking account of the sensor signal (A, B) provided by the optical sensor (34a, 34b), information regarding a current position of the mirror element relative to the light window and/or regarding a current intensity of the deflected light beam, characterized in that the evaluation device is additionally designed to identify a standstill of the mirror element on the basis of the temporal profile of the sensor signal and, if a standstill of the mirror element is identified for the predefined time duration, to output a switch-off signal to a light source emitting the deflected light beam or, if a standstill of the mirror element is identified for a predefined time duration, to adjust the mirror element by means of at least one spring such that the deflected light beam is directable onto a diaphragm of the micromechanical component, said diaphragm being arranged at a light window.