Analog Read dummy file
how about this ?
// Read the analog inputs
for (int i = 0; i &lt; length; i++)
{
    analogRead(analog_pins[address + i]); // for pre read

    // Write the state of the analog pin to the response buffer.
    slave.writeRegisterToBuffer(i, analogRead(analog_pins[address + i]));
}