With the recent rapid advancement in technology, a great number of sophisticated systems are introduced to add ease in human life. Meanwhile, due to fast growth in power demands and high pollution levels, the importance of utilizing renewable energy sources is often emphasized. In our invention, a microcontroller based on an automatic temperature control system integrated with LED is introduced. The whole system is powered by only solar energy. It is targeted to benefit the residential homes, campus, etc in Malaysia as it functions to control the indoor temperature by automatically varying the rotating speed of mini fans.