Energy conservation plays a crucial in wireless sensor networks since such networks are designed to be placed in hostile and non-accessible areas where human presence is absolutely negligible. While battery-driven sensors will run out of battery sooner or later so this may responsible to stop working sensor network, the use of renewable energy sources such as solar power or gravitation may extend the lifetime of a sensor network. Proposed scheme utilize balancing the solar power and battery power in wireless sensor networks that can work unattended without replacing the battery sooner, this may increase the lifetime of the sensor network.