Lifetime maximization of wireless sensor networks is a very prominent research topic. Different energy-efficient protocols have been proposed over the years for maximizing network lifetime. However, proposing an energy-efficient routing protocol alone is not enough to ensure prolonged lifetime of the network. Certain network parameters that can regulate energy consumption of a network too are required to be exploited for the purpose. Here, a novel network parameter called degree of proximity (DoP) has been proposed, and an optimum value of DoP was found, whereby one can maximize network lifetime with deployment of optimum number of nodes. This way, running cost of the network can be amortized. For the present work, we have considered both two-and three-dimensional wireless sensor networks where grid deployment of the nodes has been done.