An apparatus for measuring an angle between a longitudinal axis of a sample container inserted into an opening of a sample container carrier and a reference ray, the apparatus comprising a first accelerometer being fixable to the sample container and being adapted to generate a number of first accelerometer signals being dependent on the orientation of the sample container, and a calculation unit being coupled to the first accelerometer and being adapted to calculate the angle depending on the number of first accelerometer signals.