   /*
   * Send JSON Data
   */
+  Serial.println(F("Start transmit data"));
   if(isopen){
     root["open"]="True";
   } else {

// Sender ID for Database
unsigned long int ID = 234576987654321;

int led_pwr=7;
int led_act=8;

// ESP8266 WIFI
#include<SoftwareSerial.h>
SoftwareSerial wifi(2,3); //RX, TX
boolean NO_IP=false;
boolean WIFI_CONN=false;
String IP="";

  }

  if(!WIFI_CONN){
    Serial.println(F("check wifi con"));
    chk_wifi_conn();
  }

  String jsonstring;
  root.printTo(jsonstring);
  Serial.println(F("connect to server"));

  wifi.print("AT+CIPSTART=\"TCP\",");
  wifi.print("\"10.20.50.74\"");
