A vehicle roof assembly comprises an electronic control circuitry and at least one sensor operatively coupled to the electronic control circuitry. An output of the sensor exhibits hysteresis. A method of operating the vehicle roof assembly comprises performing a sensor power-down sequence. The sensor power-down sequence of steps comprises switching off the sensor; switching on the sensor; detecting the output of the sensor; storing the output of the sensor in a memory; and switching off the sensor.The method prevents inadvertent position drift due to hysteresis effects during a power toggle. |