Temperature Control and Measurement Optimization Technique through Thermography