Using AI-Powered IoT, Blockchain and Data for Sustainable Energy