       i = 0;
 
     }
-    // Check if the brightness setting has been updated
+    // Update the brightness value
     else if (strncmp((char *)onoffsw.lastread, "{\"Brightness\":", 14) == 0 ) {
 
       Serial.print(F("Brightness: "));


  while (mqtt.readSubscription(10000)) {

    if (strcmp((char *)onoffsw.lastread, "{\"On\":1}") == 0 && !led_on) {

      led_on = true;

      }

    }
    // Turn the strip off
    else if (strcmp((char *)onoffsw.lastread, "{\"On\":0}") == 0 && led_on) {

      led_on = false;
