Calculating Unknown Resistor with Arduino

I would worry more about the effect of the interrupts being disabled by the NeoPixel libraries for significant intervals, on the operation of the ethernet.