This paper presents a novel algorithm for robot navigation in unknown environments that utilizes laser sensors to recognize obstacles by analyzing the standard deviations of distance range vectors. The algorithm aims to prevent robots from becoming trapped in repetitive navigation loops by comparing current obstacle measurements with previously recorded scans and odometer data. Experimental results showed the effectiveness of the algorithm in identifying obstacles and their locations in a simulated environment.