Managing solar energy utilization and water heating in multi-apartment buildings presents formidable challenges due to limited space for solar collector installation. Optimizing heat energy distribution among communal consumers is crucial, necessitating precise regulation of hot water flow from the main system line to individual thermal storage tanks. The objective is to minimize heat and electricity losses while maximizing temperature levels in each tank. An electronic control system, centered around a microcontroller, has been developed with an efficient algorithm, data storage memory, and communication capabilities. The implemented solar heating system is tailored to each individual consumer, incorporating precise measurements for every apartment. This customization enhances efficiency not only for the individual consumer but also benefits the overall solar system within the building. This article explores the development and past outcomes of implementing such a control system, highlighting its significant advantages, particularly in multi-story buildings.