Mercury gets expanded on heating; hence its level rises in the capillary when it comes in contact with a hot object.