Wireless Sensor Network (WSN) is a self-configurable system based on the need it will build up the route for data forwarding. Wireless sensors are conveyed to accomplish network load balancing, improving network coverage, and prolonging network lifetime. To accomplish these objectives, energy efficiency directly influences battery life and hence it is essential configuration for WSNs. In this paper, the authors propose an Network Coding based Energy efficient Routing algorithm (NC-ER) in WSNs to prolong lifetime, which has the capacity to significantly prolong network lifetime while effectively improve energy efficient. Sensors are a detecting component; it will sense the changes in nature, for example, temperature and air contamination.