In turbulence condition the UAV loses stability due to high pressure acting on it and it will not be able to travel along the desired path. Hence a robust algorithm which can guide the UAV to either go through the turbulence without losing stability or to avoid it under very high turbulence condition is presented. The IMU sensor present in the UAV is used for measuring the pitch, roll and yaw and ultrasound sensor is used for altitude measurement. The data from the sensor is sent to the ground station. Neural fuzzy algorithm is used to process these parameters. Thus a signal is sent back to the UAV whether to go through or avoid the turbulence and the motors are controlled accordingly.