A method of controlling a wind turbine comprising blades attached to a rotor hub for rotation in a rotor plane and a control system for individually pitching the blades relative to the hub. The method comprises dividing the rotor plane into a number of sectors, determining the individual sectors for each blade during the rotation by means of an azimuth angle sensor, and obtaining blade sensor data from a blade sensor on an individual blade relating to a sector, and comparing the obtained data with data relating to the same sector and representing blade sensor data on other blades. When an event is detected in a given sector, an individual pitch contribution is determined in the sector, and the blades are then pitched according to this individual pitch contribution for that given sector at least partly during passage of the sector.