This document presents a proposed Internet of Things (IoT) based energy management system for homes that includes renewable energy sources using Arduino and ZigBee technology. The system monitors energy consumption and generation from sources like solar panels in order to optimize energy usage and costs. It consists of energy monitoring modules, an Arduino controller, ZigBee for wireless communication, and a home server to analyze energy data and control loads. The system is able to track energy usage patterns, estimate generation from weather forecasts, and schedule loads to minimize costs while meeting energy demands based on available renewable sources. Experimental results showed the system able to automatically turn loads on/off based on available energy and provide energy monitoring information through connected devices.