Wireless Sensor Networks are a collection of numerous nodes which contain tiny devices having low power and work with minimal cost. In such a network, the functioning of these nodes plays a very important role to sense data and also forward the sensed data to the target observer. For segregation of nodes in effective locations, there is a need to localize these nodes by combining location information with the sensed data for tracking and monitoring of malicious nodes, goods tracking etc. The approaches towards localization may be classified as range-free or rangebased, both having their own pros and cons. This paper presents a discussion on different localization approaches, followed by simulation results of localization using lognormal shadowing model for distance estimation and trilateration for location computation. The results depict the individual impacts of node density and area of sensed region on the localization error. The approach used is cost effective, since it uses loss in received power for distance computation and hence there is no cost overhead for additional hardware.