Solar energy is considered the greatest source of renewable energy. In this paper, a case study was performed for a single-axis solar tracking model to analyze the performance of the solar panels in an office building under varying ambient temperatures and solar radiation over the course of one year (2018). This case study was performed in an office building at the College of Engineering at Shaqra University, Dawadmi, Saudi Arabia. The office building was supplied with electricity for a full year by the designed solar energy system. The study was conducted across the four seasons of the studied year to analyze the performance of a group of solar panels with the total capacity of a 4 kW DC system. The solar radiation, temperature, output DC power, and consumed AC power of the system were measured using wireless sensor networks (for temperature and irradiance measurement) and a signal acquisition system for each hour throughout the whole day. A single-axis solar tracker was designed for each panel (16 solar panels were used) using two light-dependent resistors (LDR) as detecting light sensors, one servo motor, an Arduino Uno, and a 250 W solar panel installed with an array tilt angle of 21 • . Finally, an artificial neural network (ANN) was utilized to estimate energy consumption, according to the dataset of AC load power consumption for each month and the measurement values of the temperature and irradiance. The relative error between the measured and estimated energy was calculated in order to assess the accuracy of the proposed ANN model and update the weights of the training network. The maximum absolute relative error of the proposed system did not exceed 2 × 10 −4 . After assessment of the proposed model, the ANN results showed that the average energy in the region of the case study from a 4 kW DC solar system for one year, considering environmental impact, was around 8431 kWh/year. Sustainability 2019, 11, 6802 2 of 24 to develop previously discovered energy sources to eliminate the damage caused by non-renewable sources and to also compensate for the depletion of non-renewable resources in the future [1,2]. Solar energy has always been a promising source of renewable energy. It continues to attract research into its optimal development and utilization as a result of the good response and remarkable developments in solar energy systems to date. There has been a consistent, significant increase in the number of researchers investigating photovoltaic (PV) solar cells. In recent years, significant and remarkable developments have been observed in solar energy systems, which have led to a significant increase in the renewable energy market, with more solar energy systems being installed [3]. According to the REN21 (2018) Global Status Report, 2017 was a very important year in the field of solar energy, representing the increase of solar energy system installation above any other renewable energy technology. According to this report, at least 98 GW of grid-connected and off-grid solar energy systems were installe...