Than is a conjunction used to express contrast. Then is an adverb expressing a time relationship.
Sample A is 15kg heavier than Sample B.
The temperature rises, and then the valve automatically opens.