Method for controlling a stairlift, the stairlift comprises: - a carrier, which is movable along a path of travel defined by a rail, wherein the rail is designed so that an inclination angle (α) of the path of travel is changing along the path of travel, - a support, on which a user interface is mounted, in particular a chair, - a levelling mechanism, adapted to keep the support in a constant orientation compared to a horizontal plane, when the orientation of the carrier is changing due to the changing inclination angle (α), - a first lateral acceleration sensor for providing lateral acceleration values (a13x, a13y); - an angular acceleration sensor for providing an angular acceleration value (a14α); characterized by the following method steps: measuring lateral acceleration values (a13x, a13y) of the carrier by the first lateral acceleration sensor, which is mounted at the carrier; measuring an angular acceleration value (a14α) of the carrier by the angular acceleration sensor, which is mounted at the carrier; combining the provided lateral accelerations values (a13x, a13y) and the angular acceleration value (a14α) to calculate an absolute orientation value (α) of the carrier; based on the calculated absolute orientation value (α) calculating a control signal of the levelling mechanism, adapted to keep the support in a desired orientation (θ=0°; β=-α). the stairlift comprises: - a carrier, which is movable along a path of travel defined by a rail, wherein the rail is designed so that an inclination angle (α) of the path of travel is changing along the path of travel, - a support, on which a user interface is mounted, in particular a chair, - a levelling mechanism, adapted to keep the support in a constant orientation compared to a horizontal plane, when the orientation of the carrier is changing due to the changing inclination angle (α), - a first lateral acceleration sensor for providing lateral acceleration values (a13x, a13y); - an angular acceleration sensor for providing an angular acceleration value (a14α); - a carrier, which is movable along a path of travel defined by a rail, wherein the rail is designed so that an inclination angle (α) of the path of travel is changing along the path of travel, - a support, on which a user interface is mounted, in particular a chair, - a levelling mechanism, adapted to keep the support in a constant orientation compared to a horizontal plane, when the orientation of the carrier is changing due to the changing inclination angle (α), - a first lateral acceleration sensor for providing lateral acceleration values (a13x, a13y); - an angular acceleration sensor for providing an angular acceleration value (a14α); characterized by the following method steps: measuring lateral acceleration values (a13x, a13y) of the carrier by the first lateral acceleration sensor, which is mounted at the carrier; measuring an angular acceleration value (a14α) of the carrier by the angular acceleration sensor, which is mounted at the carrier; combining the provided lateral accelerations values (a13x, a13y) and the angular acceleration value (a14α) to calculate an absolute orientation value (α) of the carrier; based on the calculated absolute orientation value (α) calculating a control signal of the levelling mechanism, adapted to keep the support in a desired orientation (θ=0°; β=-α). measuring lateral acceleration values (a13x, a13y) of the carrier by the first lateral acceleration sensor, which is mounted at the carrier; measuring an angular acceleration value (a14α) of the carrier by the angular acceleration sensor, which is mounted at the carrier; combining the provided lateral accelerations values (a13x, a13y) and the angular acceleration value (a14α) to calculate an absolute orientation value (α) of the carrier; based on the calculated absolute orientation value (α) calculating a control signal of the levelling mechanism, adapted to keep the support in a desired orientation (θ=0°; β=-α).