Implemented autotune

Added moving average filter on temperature readings
Increased PID calculation interval to match duty cycle