This paper presents an innovative scheduling algorithm designed specifically for real-time energy harvesting systems, with a primary focus on minimizing energy consumption and extending the battery's lifespan. The algorithm employs a fixed priority assignment which is the deadline monotonic policy, we have chosen it for its optimality and superior performance compared to other fixed priority scheduling methods. To achieve a balance between energy efficiency and system performance, we incorporated a DVFS (Dynamic Voltage and Frequency Scaling) technique into the algorithm. This adaptive approach enables precise control over the processor's operating frequency, effectively managing energy consumption while ensuring satisfactory system functionality. The core objective of our scheduling algorithm centers on optimizing energy utilization in real-time energy harvesting systems, specifically tailored to extend the battery's operational life. Rigorous evaluations, including comprehensive comparisons against established fixed priority scheduling algorithms, validate the algorithm's efficacy in significantly reducing energy consumption while preserving the system's overall functionality. By combining the deadline monotonic policy and DVFS technique, our proposed algorithm emerges as a promising solution for energy-autonomous systems, contributing to the advancement of sustainable energy practices in real-time applications. As energy harvesting technologies continue to progress, our algorithm holds valuable potential to provide critical insights for enhancing the efficiency and reliability of future energy harvesting systems.