Design a PID Room Temperature Controller

Design a PID controller that maintains room temperature near 22 °C even with fluctuations of the outside temperature, modeled as a disturbance.

Enter the models:
In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Obtain the controller:
In[4]:=
Click for copyable input
The disturbance to output transfer function:
In[5]:=
Click for copyable input
Out[5]=
Get the outside temperature history for a particular location:
In[11]:=
Click for copyable input
In[12]:=
Click for copyable input
The temperature as a continuous function of time:
In[13]:=
Click for copyable input
In[15]:=
Click for copyable input
Compute the regulated room temperature and sample it every minute:
In[16]:=
Click for copyable input
In[17]:=
Click for copyable input
Plot the room temperature and the outside temperature:
In[18]:=
Click for copyable input
In[19]:=
Click for copyable input
In[20]:=
Click for copyable input
Out[20]=