The localization of Wireless sensor networks (WSNs) has been recognized as one of the most challenging problems to overcome. Thus, much work has been given to solving this difficult problem. In emergency services, navigational systems, civil/military surveillance etc., locating the signal source in a WSN is essential. A novel approach for sensor node localization using range-based localization methodology has been proposed to overcome this issue. The problem is expressed in the form of a maximum probability distribution function. The use of an RSSI-based Time Difference of Arrival (TDOA) measurement model, along with the Chan algorithm, is used to find the coordinates of unknown nodes has been proposed. With the help of ultra-wideband, this research aims to develop new and precise localization algorithms for wireless sensor networks (WSNs). This work offers localization using two-hybrid localization algorithms, i.e., ELPSO (Ensemble learning particle swarm optimization) and PSO- BPNN (Back-propagation neural network optimized by particle swarm optimization). Further, the error optimization accuracy has been compared between those algorithms using simulations. The proposed techniques consistently offer a better localization accuracy than the conventional algorithms available in the literature. The new localization methods with optimal techniques reduce the error value to a minimal distance. The distance value of localization error is nearly2.7cms compared to other designs from the literature. It is noted as significantly less.