Precision agriculture has emerged as a promising approach to enhance crop yield, reduce environmental impact, and optimize resource utilization through advanced sensing and automation technologies. This paper proposes an energy-efficient and location-aware framework for Internet of Things (IoT) and Wireless Sensor Networks (WSN)-based precision agriculture systems. The framework leverages low-power wireless communication protocols, adaptive sensor scheduling, and location-based clustering algorithms to minimize energy consumption and prolong the network lifetime. Key features include real-time monitoring of soil moisture, temperature, humidity, and crop health through geographically distributed sensors, with automated decision-making for irrigation, fertilization, and pest control. The proposed framework also integrates machine learning models for predictive analysis and anomaly detection, enabling early identification of potential issues that could adversely affect crop productivity. Simulation results demonstrate a significant reduction in energy consumption and communication overhead, while maintaining high accuracy in environmental parameter monitoring and resource allocation. This framework offers a scalable and robust solution for implementing sustainable precision agriculture practices, particularly in remote and resource-constrained areas