modified thermocouple code to only toggle necessary pins of PORTA