Compensating for effects of temperature changes other than those to be measured, e.g. changes in ambient temperature by means of fluid contained in a hollow body having parts which are deformable or displaceable under the pressure developed by the fluid