^ it's more involved with the resolution rather than compensating the voltage drop.
if may error i'll stand corrected... medyo di ako magaling dito..
gamitin natin yung figure 1 from the datasheet.
FIGURE 1. Basic Centigrade Temperature Sensor
(+2°C to +150°C)
Linear + 10.0 mV/°C scale factor
and lets try to get a 8 bit value from the adc. for simplicity...
factors to consider first...
*0-255 ang dec variable from boostC
*assume that you'll measure only 0°C to 150°C
if you have a same Vref with the Vdd rail (5+)
now... 150°C * 10mv = 1500mv or 1.5volts... or 75 decimal... di mo makukuha yung fullrange nang ADC mo na 255...
you're losing so much!
0.5°C accuracy guarantee-able (at +25°C)
by lowering Vref to 1.5 volts...
150°C * 10mv = 1500mv or 1.5volts... or 255 decimal 8bit you
have the full range 0°C @ 0mV and 150°C @ 255
or in 10bit 150°C @ 1025 dec.
(it won't be linear anymore. it's more on the ADC side not THE LM35... that's where a lookup table and calibration data works.) konti lang naman... ibang topic na