Generic thermostat does not show the correct temperature

I just installed HA and I have a thermostat that works with yours, it can move the temperature and it works, but the degrees that it shows are incorrect, it goes from 1 to 7 degrees if I set it to 1 on the thermostat it shows 15 and if I set it to 7 the thermostat mark 35.

Could you tell me how to fix it.

Start by posting your configuration of the Generic Thermostat and the sensor and switch entities that it references.