One way of determining the weight of an unknown yarn is to use the wrapping method.
Wrap the yarn around a large needle or a ruler. Make sure the yarn lies flat. Push the yarn together so there are no gaps between wraps. Smooth it out so it is neither too loose nor too tight. Measure the number of wraps per inch (2.5 cm). For better accuracy, measure the wraps at the centre of your yarn sample.