PID controller only works for first temp cycle then stops

YOu might need a capacitor between the ADC and GND to dampen these gliches.