     {
         if (WiFi.ready())
         {
-            Spark.connect();
+            Particle.connect();
         }
     }
 }
        //********************************************************************************
        //********************************************************************************

        //Initialize the 'Wire' class for I2C Scan
        Wire.begin();

        // Scan for I2C devices
        Serial.println("RUSK --> ScanI2C --> Scanning I2C for devices...");


        // set aside time to do OTA updates
        digitalWrite(LED, HIGH);
        Particle.process(); delay(OTAUPDDELAY);
        digitalWrite(LED, LOW);

        //********************************************************************************
        //********************************************************************************
        //********************************************************************************

        Wire.reset();

        //********************************************************************************
        //********************************************************************************
