An IoT-Based Framework for Smart Agriculture Managing and Product Enhancing