Abstract
This paper proposes an architecture for the control of the microgrid using IoT connectivity. The control aims at connecting or disconnecting the residential houses to the main-grid based on the power generated by the distributed energy resources. The architecture has been verified using Proteus software, modeled, and simulated using Matlab/Simulink package. The results show that the control algorithm connects the highest load to the grid in a switching time of less than one second.