Temperature on LCD doesn't update

You haven't approached this as a design project. It would have a research, definition, and implementation stage.

Beginning with the loose definition of your project, create a more precise definition of how it should work. Divide it into sub tasks e.g. "measuring temperature" and then research what hardware/software you would need to do only that. Repeat with each of the other sub tasks. Now you are in a position to code test sketches for each part. Code and test until it works. Now, combine all the working parts, and "presto!".

You can not start a car moving in overdrive gear. By cut and pasting a boat load of code you barely understand, you have set yourself up for failure. If you had written the code yourself, you might still encounter this problem, but you could probably solve it yourself relatively quickly because of your familiarity with your own code.