Sensor for detecting a rotation rate of an object (6, 20), comprising: - an encoder element, which is configured to oscillate in an excitation direction at an angle to the axis of rotation of the rotation rate to be detected at an excitation frequency on a restoring element, which is fastened in a stationary manner on the object (6, 20), so that the encoder element is deflected, as a result of the Coriolis force, at an angle to the axis of rotation and at an angle to the oscillation direction in a reaction direction at a reaction frequency, and - a measurement pickup, which is configured to detect the oscillation in the reaction direction, - wherein the oscillatory encoder element is designed such that a comparison of a temperature-dependent shift of a frequency interval between a resonance frequency in the excitation direction and a resonance frequency in the reaction direction and a temperature-dependent location of the encoder element on the object (6, 20) meets a predetermined condition, which leads to an oscillation of the encoder element which is temperature-independent as a whole, - wherein the encoder element is a capacitance electrode, which oscillates in the reaction direction in relation to a further capacitance electrode, wherein the measurement pickup is configured to detect the oscillation in the reaction direction based on a capacitance between the two capacitance electrodes (2, 48), - wherein the restoring element has a spring constant, wherein the sensor is designed such that said spring constant is dependent on an electrical voltage between the two capacitance electrodes (2, 48), and the voltage is set such that the comparison meets the predetermined condition. - an encoder element, which is configured to oscillate in an excitation direction at an angle to the axis of rotation of the rotation rate to be detected at an excitation frequency on a restoring element, which is fastened in a stationary manner on the object (6, 20), so that the encoder element is deflected, as a result of the Coriolis force, at an angle to the axis of rotation and at an angle to the oscillation direction in a reaction direction at a reaction frequency, and - a measurement pickup, which is configured to detect the oscillation in the reaction direction, - wherein the oscillatory encoder element is designed such that a comparison of a temperature-dependent shift of a frequency interval between a resonance frequency in the excitation direction and a resonance frequency in the reaction direction and a temperature-dependent location of the encoder element on the object (6, 20) meets a predetermined condition, which leads to an oscillation of the encoder element which is temperature-independent as a whole, - wherein the encoder element is a capacitance electrode, which oscillates in the reaction direction in relation to a further capacitance electrode, wherein the measurement pickup is configured to detect the oscillation in the reaction direction based on a capacitance between the two capacitance electrodes (2, 48), - wherein the restoring element has a spring constant, wherein the sensor is designed such that said spring constant is dependent on an electrical voltage between the two capacitance electrodes (2, 48), and the voltage is set such that the comparison meets the predetermined condition. - wherein the restoring element has a spring constant, wherein the sensor is designed such that said spring constant is dependent on an electrical voltage between the two capacitance electrodes (2, 48), and the voltage is set such that the comparison meets the predetermined condition.