 #define CONNECTED 5
 
 // #define SOFTPOT_DELTA_THREASHOLD 80
-#define TARGET_DELTA_THRESHOLD 80
+#define TARGET_DELTA_THRESHOLD 60
 #define DELAY_IN_WAIT 1000000
 
 unsigned long session_id;// = 0xA90;

    DEBUG_PRINT(selectedXBee);
    DEBUG_PRINT(", id=");
    DEBUG_PRINT(XBeePacketArr[selectedXBee].id);
    DEBUG_PRINT(", pressed=");
    DEBUG_PRINT(pressed);
    DEBUG_PRINT(", released=");
    DEBUG_PRINTLN(released);
    if (selectedXBee != previousSelected) {
      sendXBeePacketFromRaw(&XBee, XBeePacketArr[selectedXBee].id, "v", XBeePacketArr[selectedXBee].data);
      previousSelected = selectedXBee;

  }
  delay(10);

  return; //*** for debuggin purpose?
  
  switch(state) {
    case IDLE:
