   Serial.println(VERSION);
   
   // radio initialization
-  radio.Initialize(MYID, FREQUENCY, NETWORKID, 0);
-  radio.Encrypt((byte*)KEY);
-  sprintf(buffer, "Transmitting at %d Mhz...", FREQUENCY == RF12_433MHZ ? 433 : FREQUENCY== RF12_868MHZ ? 868 : 915);
-  Serial.println(buffer);
+  setup_radio();
+  
+  // sensor initialization
+  setup_sensors();
   
   // define default sensor thresholds
   setup_sensor_thresholds();

    
    sendSize = (sendSize + 1) % 31;
    Serial.println();
    Blink(9,5);
  }
}

//------------------------------------------------------------------------------

        radio.SendACK();
        Serial.print(" - ACK sent.");
      }
      blink_led(DPIN_RF_LED, 5);
    }
  }
  
