Measurement of weight or volume