Vin not the same as input voltage

Ah ok, so in theory I could compensate for this voltage drop in code. But I guess it would be more exact to read the voltage from the source instead.