Smart microgrid with the internet of things for adequate energy management and analysis. (March 2023)