Precision of resistor measurements...

A Due output pin will have significant source resistance (hundreds of ohms perhaps). Use the 3.3V rail
as your power source and see if things are better.