Servo Controlled by a Temperature Sensor

Please modify your post and use the code button </> so your code looks like this and is easy to copy to a text editor. See How to use the Forum

What happens when you run the program you posted? Give as much detail as you can.

...R