Using sine function for temperature modeling