A direct sensor-to-microcontroller interface scheme that compensates the effect due not only to resistances of lead wires but also the effect of microcontroller port pin's internal resistance and any offset present in those pins is presented in this paper.