Sensors are important device to collect the information for many applications. The present era is using internet of things (IOT) which is basically working on sensors. The inputs or status of the system is monitored using the sensors embedded in the system under consideration. The sensors need to be small in size, has to consume less power, more reliable and consistence. Wireless sensor network (WSN) is a collection of sensors which works together to do a particular task. This cluster of sensors are called nodes and has its own power and ability to communicate to other nodes in the cluster. The location of sensors in the cluster is required to be identified for proper data analysis. When the data is received from the sensor the location is also mapped with it then only proper action can be taken based on signal and location. In WSN few sensor locations are known which are called anchors, from these anchors, the location of unknown sensors are estimated. In this paper, intelligent algorithms firefly and flower pollination algorithm (FPA) are used to find the location of the sensors. The performance of the algorithms is compared with their accuracy to find the location and convergence speed.