USING THE INTERNET OF THINGS IN SMART ENERGY SYSTEMS AND NETWORKS