In this paper was presented a temperature control system in an enclosure by using the Arduino Mega 2560 development board. The temperature in the enclosure was measured with a LM 35 temperature sensor. For the control of the temperature in the enclosure, we used the "Measurement of temperature_Arduino_2015.vi" program made in the LabVIEW 2015 programming environment. This program was implemented and validated on an experimental stand in the Electrical Machines Laboratory from "Vasile Alecsandri" University of Bacau. By using this temperature control system, will be obtained reduction in the amount of electricity needed to heat the enclosure.