  
   //Handle 12V ADC
   if ((adc_12v_average > ADC_12V_UPPER_LIMIT_HIGH) || (adc_12v_average < ADC_12V_LOWER_LIMIT_LOW)){
-    error_12v = true;
-    setRelais12v(false);
+    if (startup == false){  //during startup phase do not turn off relais
+      error_12v = true;
+      setRelais12v(false);
+    }
   }
   if((adc_12v_average < ADC_12V_UPPER_LIMIT_LOW) && (adc_12v_average > ADC_12V_LOWER_LIMIT_HIGH)){
     error_12v = false;
     setRelais12v(true);
   }
-  
-  //Handle 5V ADC
-  if((adc_5v_average > adc_5v_upper_limit) || (adc_5v_average < adc_5v_lower_limit)){
-    // do smth
-  }
+
  
  
   //Handle Bad SWR
-  if (irq_swr_counter >= 5){ //check approx every 100ms
+  if (irq_swr_counter >= 100){ //check approx every 2s
     float mySWR = calcSWR();
     if (swr_voltage_forward > 50){  //only check SWR if transmitting - power applied
-      vswr = mySWR;
+      vswr = mySWR; // write into global variable
       if(abs(vswr) >= 3){
         setRelais12v(false);
         error_vswr = true; 

//******************************************************************

//define limits
const int ADC_12V_LOWER_LIMIT_LOW = 452;  // 10,4V lower hysteresis
const int ADC_12V_LOWER_LIMIT_HIGH = 484;  // 11,0V upper hysteresis
const int ADC_12V_UPPER_LIMIT_LOW = 652; //14,8V lower hysteresis
const int ADC_12V_UPPER_LIMIT_HIGH = 681; //15,5V upper hysteresis

int adc_5v_upper_limit = 587;  // 5.5V
int adc_5v_lower_limit = 480;  // 4.5V

const float SWR_LIMIT = 3;

// Variables set True in case limits are exeeded
bool error_12v = false;
bool error_5v = false;
bool error_230v = false;
bool error_vswr = false;

const int ADC_READINGS = 3;          // number of ADC samples used for averaging
int adc_index = 0;                  // pointer to the current reading in the arrays 

//arrays to store ADC values
int adc_12v[ADC_READINGS];
int adc_5v[ADC_READINGS];
int adc_vswr_forward[ADC_READINGS];
int adc_vswr_return[ADC_READINGS];


    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;
