**Appendices and nomenclature**

```
Code for selecting a Dynamic HUB.
   // code for Blood Pressure.
   #include"Bluetooth.Serial.h".
   #!defined(CONFIG_BT_ENABLED)||!defined(CONFIG_BLUEDROID_
ENABLED).
   #ERROR Bluetooth is not enabled! Please run'make menuconfig' to enable it.
   #endif.
   BluetoothSerail SErialBT;
   Void setup() {.
   Serail.begin(9600);
   SerailBT.begin("NODE_C);//Bluetooth device name.
   Serial println("The device started, now you can pair it with Bluetooth!");
   }
```
*Dynamic HUB Selection Process in Wireless Body Area Network (WBAN) DOI: http://dx.doi.org/10.5772/intechopen.98613*

```
Void loop() {.
   Float p = analogRead(34);
   SerailBT.print("P:" + String(p));
   Float v = analogRead(32)/200;
   SerailBT.println("v:" + String(v));
   Delay(5000);
   }
   //Code for heart Beat Sensor.
   #include"Bluetooth.Serial.h".
   #!defined(CONFIG_BT_ENABLED)||!defined(CONFIG_BLUEDROID_
ENABLED).
   #ERROR Bluetooth is not enabled! Please run'make menuconfig' to enable it.
   #endif.
   BluetoothSerail SErialBT;
   Int hs = 13;
   Int hb = 0;
   Void setup() {.
   Serial begin(9600);
   SerialBT.begin("NODE_B");//Bluetooth device name.
   Serial.Println("The device started, now you can pair it with Bluetooth!");
   }
   Void loop() {.
   Double x = millis();
   hb = 0;
   while(millis() < x + 5000).
   {
   If(digitalRead(hs)==0).
   {
   Hb = hb + 1;
   Delay(300);
   }
   }
   hb = hb*5;
   SerialBT.print("H:" + String(hb));
   Float v = analogRead(35)/200;
   SerialBT.Println("V:" + String(v));
   delay(3000);
   }
   //Code for Temperature Sensor.
   #include"Bluetooth.Serial.h".
   #!defined(CONFIG_BT_ENABLED)||!defined(CONFIG_BLUEDROID_
ENABLED).
   #ERROR Bluetooth is not enabled! Please run'make menuconfig' to enable it.
   #endif.
   BluetoothSerail SErialBT;
   Void setup() {.
   Serial begin(9600);
   SerialBT.begin("NODE_A");//Bluetooth device name.
   Serial.Println("The device started, now you can pair it with Bluetooth!");
   }
   Void loop() {.
   Float t = (analogRead(34)/2.7)/2.3;
```

```
SerialBT.println("T:" + String(t));
Float v = analogRead(35)/200;
SerialBT.Println("v:" + String(v));
Delay(3000);
}
```