In this paper, firstly, a model for robot navigation in unknown environment is presented as a Simulink model. This model is applicable for obstacles avoidance during the robot navigation. However, the first model is unable to recognize the re-occurrences of the obstacles during the navigation. Secondly, an advanced algorithm, based on the standard deviations of laser scan range vectors, is proposed and implemented for robot navigation. The standard deviations of the lasers scans, robot positions and the time of scans with similar standard deviations are used to obtain the obstacle recognition feature. In addition to the obstacle avoidance, the second algorithm recognizes the re-appearances of the obstacles in the navigation path. Further, the obstacle recognition feature is used to break the repetitive path loop in the robot navigation. The experimental work is carried out on the simulated Turtlebot robot model using the Gazebo simulator.