Detection and Compensation of Current Harmonics in a Microgrid Using an Active Power Filter Supported by an IoT Sensor Network | IEEE Conference Publication | IEEE Xplore