IoT based Optimal Energy Management System with Electricity Selling for Residential Applications | IEEE Conference Publication | IEEE Xplore