Cardboard thickness measurement