I would suspect a wiring error. Nothing obvious jumps out about your code.
If you replace the temperature sensor with a potentiometer, can you see the readings change?
I would suspect a wiring error. Nothing obvious jumps out about your code.
If you replace the temperature sensor with a potentiometer, can you see the readings change?