A little trouble with my thermostat sketch.

Is this the part that isn't working? It is outside of the val == 1 check and will execute regardless of the value of the switch pin. Maybe you need to check for the value of val here too?

 else if (currentTemp < setTemp)
 {
   digitalWrite(SSRCPin, LOW);
   digitalWrite(SSRFan, LOW);     <----------  
}