With the emergence of Internet-of-Things (IoT) technologies, the application of Wireless Sensor Network (WSN) has become pervasive in our physical environment. These technologies rely on the WSN to capture environmental data and transmit it through the network to the specified location or storage. Given the massive data that captured by the WSN and the data transmission that happen in the process, there is a challenge for any developers and researchers in WSN in terms of a continuous operation of the WSN device. This is because WSNs are battery-powered and often deployed in a remote location that is hard to access for a battery replacement. The purpose of this paper is to survey the energy harvesting for improving the lifetime of the wireless sensor networks powered by the environmental energy. Energy harvesting takes advantages of the stray energy from the environment as the sustainable source of power.