 
 void Restore_Default()
 {
-    int chk = DHT11.read(DHT11PIN);
-    NdefRecord records[4];
+    //int chk = DHT11.read(DHT11PIN);
+    NdefRecord records[5];
     /** here get data from sensor **/
     //get sensor data
     byte exData0[] = {60}; //humidity 60%  form sensor   
     byte exData1[] = {24}; //temperature 24 C  form sensor 
     byte exData2[] = {50}; //humidity 50%  warm line 50%
-    exData0[0] = DHT11.humidity;
-    exData1[0] = DHT11.temperature;
+    //exData0[0] = DHT11.humidity;
+    //exData1[0] = DHT11.temperature;
+    long a = analogRead(A2);
+    long b = (a*100)/900;
+    exData0[0] = b;
     Serial.println(exData0[0]);
     Serial.println(exData1[0]);
     //Serial.println( DHT11.temperature);

        nfc.Write_Register(CONTROL_REG, INT_ENABLE + INTO_DRIVE + RF_ENABLE);

        //re-enable INTO
        attachInterrupt(1, RF430_Interrupt, FALLING);
    }
//
    if (DHT11.humidity < EEPROM.read(address)) //auto control relay watering
    {
      digitalWrite(RELAY,HIGH);
      delay(2000);
      digitalWrite(RELAY,LOW);
    }
    if (loop_num == 50) //5s refresh tag
    {
        Restore_Default();

    /// init data here
    Restore_Default();//write sensor data to DNFC TAG
    //Serial.println(EEPROM.read(address));
    //Serial.println(EEPROM.read(address+1));
    //enable interrupt 1
    attachInterrupt(IRQ, RF430_Interrupt, FALLING);
    Serial.println("Wait for read or write...");
    //Serial.println("DHT11 TEST PROGRAM ");
    //Serial.print("LIBRARY VERSION: ");
    //Serial.println(DHT11LIB_VERSION);
}

void loop(void) 
