Wireless sensor network consists of various nodes that are basically used for the calculation and transmission of the data. These nodes are battery powered due to which energy of a node plays a vital role. The amount of the energy used up by any node while the data is transmitted, it needs to be optimized so that the less amount of energy is consumed. The efficiency of the WSN depends on the numerous performance parameter of the network. A lifetime of network and energy consumption is the most important parameters in the design of a WSN. Various routing protocols have been designed to find the route in the network. Various energy efficient protocols have such as LEACH, DEEC, etc. were proposed, later on with Bio-inspired optimization like ACO, GA, PSO, etc. were used for finding the route in the network to increase the efficiency of the wireless sensor network but still there was need to design the algorithms that are more efficient than these in terms of energy consumption and network life, so in this paper an advancement in the PSO algorithm is proposed. The problem of the traditionally using PSO is resolved and by making some modification and proposing the modified moderate random particle swarm optimization. From the experiment perform it is concluded that this introduced approach is much efficient than the traditional PSO.