This paper explores the design, development, and testing of a hardware model for a renewable energy-based DC microgrid, which incorporates Internet of Things (IoT) technology for efficient power management. By integrating renewable energy sources such as solar and wind, combined with energy storage, power conversion, and real-time monitoring, the proposed microgrid ensures seamless and automated power distribution. Using an ESP32 microcontroller, the system dynamically manages loads and transmission based on energy availability. The IoT-enabled infrastructure facilitates remote control and monitoring, enabling scalable and sustainable solutions for energy management. Experimental results validate the system's high efficiency and feasibility in real-world applications, making it a promising candidate for future smart grids.