 void setup() {
   Serial.begin(115200);
   delay(10);
-  dht.begin();
+  dht.begin();                 // sensor start 
   WiFi.begin(WLAN_SSID, WLAN_PASS);
   while (WiFi.status() != WL_CONNECTED) {
     delay(500);

        mqtt.publish(arduino_response, "done", 1);
      }
    }
    if (subscription == &statusreport) {
      if (strcmp((char *)statusreport.lastread, "statusreport") == 0) {
        calcWatt(4);
      }
    }
  }


// LOOP ----------------
void loop() {
  
  
  if (!mqtt.connected()) {
    MQTT_connect();               // keep connection alive
  }
  
  Adafruit_MQTT_Subscribe *subscription;
  while ((subscription = mqtt.readSubscription(3000))) {             // check if you have message from subscriptions
    if (subscription == &onoffbutton) {                              // check if message is from room control
      if (strcmp((char *)onoffbutton.lastread, "connect") == 0) {
        isConnected = 1;
        mqtt.publish(arduino_response, "connected", 1);
      } else if (strcmp((char *)onoffbutton.lastread, "disconnect") == 0) {
        isConnected = 0;
      } else if (strcmp((char *)onoffbutton.lastread, "AC1") == 0) {     
        Serial.print("AC1");                      // sent ac1 to the arduino 
        delay(50);
        calcWatt(1);                              // update the watt on site
      } else if (strcmp((char *)onoffbutton.lastread, "AC0") == 0) {
        Serial.print("AC0");
        delay(50);
