Primary key for temperature samples now is timestamp+sensor id.