SELECT
  temperature_id,
  temperature_value,
  temperature_from_date,
  temperature_till_date,
  sensor_id,
  creation_date,
  update_date
FROM
  temperatures
WHERE
  temperature_id = $1;