 {
   //startup
   
-  //enable all relais on start
-  digitalWrite(RELAIS_12V, HIGH);
-  digitalWrite(RELAIS_5V, HIGH);
-  digitalWrite(RELAIS_230V_PHASE, HIGH);
-  digitalWrite(RELAIS_230V_NEUTRAL, HIGH);
-  
-  getTemperature();
+  //enable all relais on start first 230V, then 12V
+  setRelais230v(true);
+  getTemperature();  // #1 (3 measurements needed due to averaging)
+  delay(2000);
+  getTemperature();  // #2
+  delay(2000);
+  getTemperature();  // #3
+  setRelais12v(true);
+  delay(4000);
+
+  Timer1.attachInterrupt(checkLimits); //bind function to timer interrupt
+  
   char inBytes[20]; 
-  
+   
   //main Loop
   while(true){
-    Serial.println(adc_12v_average);
-    delay(400);
     
     //read commands comming through USB Serial Interface
     if (Serial.available() > 0){

    //Handle Transmitter Temperature
    if (temperature_tx_average >= TEMP_TX_LIMIT_HIGH){
      overTemperatureTx = true;  //needed to ensure that ADC doesn't enable the 12V again
      relais_12v = false;
    }
    if (temperature_tx_average <= TEMP_TX_LIMIT_LOW){
      overTemperatureTx = false;

    case 'x':{
      switch(inBytes[1]){
        case '1': {
          remote_12v_off = false;
          error_vswr = false; // reset VSWR Error
          setRelais12v(true);
          break;
        }        
        case '0': {
          if ((overTemperatureCabinet == false) && (overTemperatureTx == false)){
            setRelais12v(false);
            remote_12v_off = true;
            break;
