A circuit which maintains the inertial element of a gyroscope or accelerometer at a constant position by delivering pulses to a rebalancing motor is discussed. The circuit compensates for temperature changes by using a temperature sensor that varies the threshold of inertial element movement required to generate a rebalance pulse which reacts to changes in viscosity of the flotation fluid. The output of the temperature sensor also varies the output level of the current source to compensate for changes in the strength of the magnets of the rebalancing motor. The sensor also provides a small signal to the rebalance motor to provide a temperature dependent compensation for fixed drift or fixed bias