Method for determining a heat signature of a building by measuring the temperature over time, and related device