A next-generation electrical power system known as the "Smart Grid" (SG) uses two-way communication to generate, use, and transport electrical energy. Demand Response (DR) is one of the SG's primary features (DR). Smart meters in DR transmit a pricing signal to the consumer, allowing them to adjust their demand in reaction to the corresponding price signals. Day-Ahead and Time-of-Use are the most widely used load scheduling schemes, however, they deviate from the Real time pricing scheme (RTP). Due to its erratic nature, integrating renewable energy sources like solar and wind is a difficult process in SG. Because of the fluctuations in both energy consumption patterns and power rates, the majority of current methods for managing demand are predicated either on day-ahead or time-of-use pricing rather than real-time pricing. This study describes a load scheduling system that uses a Genetic Algorithm (GA) to classify various users according to their energy use in a real-time pricing environment. Our load scheduling problem is formulated utilizing the knapsack mathematical formulation technique to reduce the electricity expenditure. In order to keep the grid stable and reduce costs, renewable energy is integrated with the grid's energy to lower the Peak-to-Average Ratio (PAR). The efficiency of the suggested algorithm in terms of electricity cost and PAR reduction is supported by simulation results.