Learning-Based Activation of Energy Harvesting Sensors for Fresh Data Acquisition