b. Temperature sensor
Temperature measurment .
Similar connection is for temperature sensor, it need 5V , GND and signal connected to any free ADC input - use linear sensors .
One of them is LM35 - it is linear temperature sensor working very nice with OSD at any ADC calibrated for temperature show .
For example temperature sensor LM35DZ working since 0 to 100 Celsius degree linearly .
So for 0 C is 0V and for 100C is 1V , change of 1 C is change of 0,01V .
So calibration is very easy , simply measure actual voltage on sensor - for example 0,28V (280mV) means 28 C degree , so now only measure ADC value and count gain to show 28C - that all .
Or put at ADC input 1V - then divide ADC value by 100 - result is gain - then after temperature sensor connection everything is calibrated and ready to show proper temperature .
training.ti.com/how-interface-lm35-analog-temperature-sensor-arduino