Explanation:
Temperature range → 0 to 80'c
respective voltage output → 0.2v to 0.5v
required temperature range 20'c to 40'c
Where T = 20'c respective voltage
![\begin{aligned}v_{20} &=0.2+\frac{0.5-0.8}{80} \times 20 \\&=0.2+\frac{0.3}{80} \times 20 \\V_{20} &=0.275 v\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7Dv_%7B20%7D%20%26%3D0.2%2B%5Cfrac%7B0.5-0.8%7D%7B80%7D%20%5Ctimes%2020%20%5C%5C%26%3D0.2%2B%5Cfrac%7B0.3%7D%7B80%7D%20%5Ctimes%2020%20%5C%5CV_%7B20%7D%20%26%3D0.275%20v%5Cend%7Baligned%7D)
![\begin{aligned}\text { when } T=40^{\circ} C & \text { . } \\v_{40} &=0.2+\frac{0.5-0.2}{80} \times 40 \\&=0.35 V\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7D%5Ctext%20%7B%20when%20%7D%20T%3D40%5E%7B%5Ccirc%7D%20C%20%26%20%5Ctext%20%7B%20.%20%7D%20%5C%5Cv_%7B40%7D%20%26%3D0.2%2B%5Cfrac%7B0.5-0.2%7D%7B80%7D%20%5Ctimes%2040%20%5C%5C%26%3D0.35%20V%5Cend%7Baligned%7D)
Therefore, Sensor output changes from 0.275v to 0.35volts for the ADC the required i/p should cover the dynamic range of ADC (ie - 0v to 3v)
so we have to design a circuit which transfers input voltage 0.275volts - 0.35v to 0 - 3v
Therefore, the formula for the circuit will be
![\begin{array}{l}v_{0}=\left(v_{i n}-0.275\right) G \\\sigma=\ldots \frac{3-0}{0.35-0.275}=3 / 0.075=40 \\v_{0}=\left(v_{i n}-0.275\right) 40\end{array}](https://tex.z-dn.net/?f=%5Cbegin%7Barray%7D%7Bl%7Dv_%7B0%7D%3D%5Cleft%28v_%7Bi%20n%7D-0.275%5Cright%29%20G%20%5C%5C%5Csigma%3D%5Cldots%20%5Cfrac%7B3-0%7D%7B0.35-0.275%7D%3D3%20%2F%200.075%3D40%20%5C%5Cv_%7B0%7D%3D%5Cleft%28v_%7Bi%20n%7D-0.275%5Cright%29%2040%5Cend%7Barray%7D)
The simplest circuit will be a op-amp
NOTE: Refer the figure attached
Vs is sensor output
Vr is the reference volt, Vr = 0.275v
![\begin{aligned}v_{0}=& v_{s}-v_{v}\left(1+\frac{R_{2}}{R_{1}}\right) \\\Rightarrow & \frac{1+\frac{R_{2}}{R_{1}}}{2}=40 \\& \frac{R_{2}}{R_{1}}=39 \quad \Rightarrow\end{aligned}](https://tex.z-dn.net/?f=%5Cbegin%7Baligned%7Dv_%7B0%7D%3D%26%20v_%7Bs%7D-v_%7Bv%7D%5Cleft%281%2B%5Cfrac%7BR_%7B2%7D%7D%7BR_%7B1%7D%7D%5Cright%29%20%5C%5C%5CRightarrow%20%26%20%5Cfrac%7B1%2B%5Cfrac%7BR_%7B2%7D%7D%7BR_%7B1%7D%7D%7D%7B2%7D%3D40%20%5C%5C%26%20%5Cfrac%7BR_%7B2%7D%7D%7BR_%7B1%7D%7D%3D39%20%5Cquad%20%5CRightarrow%5Cend%7Baligned%7D)
choose R2, R1 such that it will maintain required ratio
The output Vo can be connected to voltage buffer if you required better isolation.