Consider a SIR model for the spread of dengue hemorrhagic fever involving three populations, mosquito eggs, mosquitoes, and humans. The parameters of the SIR model were estimated using rainfall data and air temperature for the cities of Pekanbaru and Solok. The main aim of this paper is to determine the effect of mosquito larvae and adult mosquito control on the spread of the dengue virus. Numerical solutions were also presented by using the Runge-Kutta method of order 4. Based on the results, the SIR model was obtained by involving the control parameters of mosquito larvae and adult mosquitoes. Besides, the mosquito population is affected by changes in temperature, rainfall, and fog. Numerical simulations illustrate that the number of infected mosquitoes and infected humans is influenced by the parameters of the percentage of mortality of mosquito larvae and adult mosquitoes.