Need help merging code

looks like i dont really want to merge them i just want to change this part from the code

#define TEMP_SENSOR_PIN 0

So that is takes input from the pins the MAX is conected to

#include "max6675.h"

int ktcSO = 8;
int ktcCS = 9;
int ktcCLK = 10;

MAX6675 ktc(ktcCLK, ktcCS, ktcSO);

So how i will actually do that ?