I can see how the absolute value of the magnetic field can be measured by measuring the splitting of the levels. But a sign reversal would only cause the order of the levels to reverse and I don’t see a way to distinguish between for example spin 1/2 and -1/2.