A classic statistical problem is the optimal construction of sampling plans to accept or reject a lot based on a small sample. We propose a new asymptotically optimal solution for acceptance sampling by variables setting where we allow for an arbitrary unknown underlying distribution. In the course of this, we assume that additional sampling information is available, which is often the case in real applications. That information is given by additional measurements which may be affected by a calibration error. Our results show that, first, the proposed decision rule is asymptotically valid under fairly general assumptions. Secondly, the estimated optimal sample size is asymptotically normal. Furthermore, we illustrate our method by a real data analysis and investigate to some extent its finite-sample properties and the sharpness of our assumptions by simulations.