A Wireless Sensor Network (WSN) is a collection of different nodes working together in a networked fashion in an ordered way. For many applications, sensor location in wireless sensor networks (WSN) is crucial. It is expensive to equip each sensor node with a GPS receiver. Numerous methods, including range-based and range-free methods, have been put forth in the past to determine the locations of sensor nodes that are randomly distributed. The majority of them make use of unique nodes known as anchor nodes, which are thought to be aware of their own positions. These anchor nodes supply the information that other sensors use to calculate their locations. Massive numbers of sensor nodes are used in wireless sensor networks (WSNs) to gather data about the immediate environment. However, this data is useless until the precise location of the data collection points is known. Sensor node localization in wireless sensor networks (WSNs) is important for a number of applications. The current research study develops a path planning technique to apply mobile anchors to the localization systems that are currently in use. The two mobile anchors supported by the effective trajectories, or effective SCAN, is the focus of the proposed research project. To localise the sensor node and transmit data, this method involves setting the mobile anchors to move in the opposite direction. The advantages of this dual movable anchor are demonstrated by the research study in terms of decreased localization time, localization error, and other factors.