In order to maintain a constant of temperature, the indoor climate is commonly controlled by air conditioning systems to keep occupants comfortable room in buildings. To achieve this issue, the control systems have applied to adaptable parameters to control the indoor climatic conditions. In this paper, PID (Proportional, Integral, Derivative) control logic is used to control the temperature. Embedded control system with PID controller and implementing in dSPACE is designed to minimize the oscillation effect within a range of 17°C–45°C. The result shows that the greater difference between setting temperature and observed temperature is steady state error less than 0.5°C. As a result, the designed system can be used to control and maintain an accurate indoor temperature.