Adjust Current temperature to display values according to the temperature being adjusted up and down

Please help me. Is there any way? If I press to increase or decrease the temperature, the Current temperature value will change according to the temperature value I adjusted. For example, if the temperature is adjusted to 25c, the Current temperature will adjust accordingly. 25c follows the same I would like to know how this can be managed with