 //const char* password = "";
 
 // The WiFi Host and PostURL
-const char* postURI = "http://pacific-springs-32410.herokuapp.com/api/data"; 
+const char* postURI = "http://pacific-springs-32410.herokuapp.com/api/data";
 const char* nodeID = "00000012340987011";
 
 const char* socketHost = "192.168.50.52";
 const int socketPort = 8888;
 const char* socketPath = "/socket.io/?transport=websocket";
 
-long previousMillis = 0;        
+long previousMillis = 0;
 long interval = 60000;
 
 int setup_status = 0;
- 
+
 void tick()
 {
-  int state = digitalRead(0);  
+  int state = digitalRead(0);
   digitalWrite(LED, !state);
 }
 

      if (index == 1) { humidity = strtod(str,NULL); }
      if (index == 2) { co2 = strtod(str,NULL); }
      if (index == 3) { voc = strtod(str,NULL); }
      if (index == 4) { visible = strtod(str,NULL); } 
    }
    if (command == "data_2") {
      if (index == 0) { light = strtod(str,NULL); }

    Serial.println("Setting Frequency Failed!");
  }
  // Sets the power and the encryption key
  rf69.setTxPower(20, true);
  uint8_t key[] = { 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08,
                    0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08};
  rf69.setEncryptionKey(key);
