The Flow Temperature is calculated as follows:

The Ambient Temperature Estimate is calculated as follows:

\begin{aligned}
\text{Flow Temperature Estimate}(t) = \frac{\sum_{i = t - 5}^{t}{\text{Flow Temperature}(i)}}{12}

\\
\\
\\

\text{Ambient Temperature Internal}(t) = \text{Ambient Sensor Raw Value}(t) * (\frac {\text{Ambient Sensor Raw Value}(t)} {\text{Flow Temperature Estimate}(t)})^{1.2}

\\
\\
\\

\text{Ambient Temperature Estimate}(t) = \frac{\sum_{ i = t-3}^{t}
{\text{Ambient Temperature Internal}(i)}}{4}

\end{aligned}