-#include <dht11.h>
-#include <EEPROM.h>
-
-dht11 DHT11;
-#define DHT11PIN 12 //define DHT11 pin
-#define RELAY 2    //define relay pin
 /* Copyright 2013 Ten Wong, wangtengoo7@gmail.com  
 *  
 */
-
-/*********************************************************
-** sample: when reset the rf430, it will write the uri to 
-** rf430 tag.
-***********************************************************/
+//#include <dht11.h>
+#include <EEPROM.h>
+
+//dht11 DHT11;
+//#define DHT11PIN 12 //define DHT11 pin
+//#define RELAY 2    //define relay pin
+
+
 #if ARDUINO >= 100
  #include "Arduino.h"
 #else

    records[1].createExternal("flower", "humidity", exData0, sizeof(exData0));
    records[2].createExternal("flower", "temperature", exData1, sizeof(exData1));
    records[3].createExternal("flower", "setting", exData2, sizeof(exData2));
    
    NdefMessage msg(records, sizeof(records)/sizeof(NdefRecord));
    uint16_t msg_length = msg.getByteArrayLength();


void Restore_Default()
{
    //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;
    long a = analogRead(A2);
    long b = (a*100)/900;
    exData0[0] = b;
    Serial.println(exData0[0]);
    Serial.println(exData1[0]);
    //Serial.println( DHT11.temperature);
