fixed conditional expression in I2C_STOP_READING case
changed samplingInterval from int to unsigned int to remove compiler warning