Calibrating the sensor on a thermal transfer printer