This paper presents a novel approach for addressing energy and spectrum issues in wireless sensor networks (WSNs) using cooperative spectrum sharing and RF energy harvesting techniques. The self-sustaining WSN is designed to function as a secondary user, assisting the primary user while harvesting needed energy and spectrum. The results validate the proposed analysis through theoretical and simulation comparisons, demonstrating significant performance improvements for both primary and secondary users.