KY-013 Temperature sensor working incorrectly

Wawa:
There are only two resistors on that board (non-polarised parts).
A fixed one (10k) and a variable one (10k thermistor).
They make a voltage divider, with the tap connected to the analogue input.
Maybe the thermistor is connected to ground and the resistor to +5volt.
The code seems to expect the resistor to ground.
Try swapping the +5volt and ground wires.
Leo..

Hey Leo, Thank you for your advise I did as you said and the problem has been solved!
it works great.
Thanks for the help