 
   if (buttonPushed())
     {
-      
+
        //Check if slot is available, if so replenish
-                
-        if(slotStatus == "true")   //if the product in slot are available 
+
+        if(slotStatus == "true")   //if the product in slot are available
         {
-            //we have a match! replenish the products associated with that slot!            
+            //we have a match! replenish the products associated with that slot!
             DRS.requestReplenishmentForSlot(slotId);
         }
         else

/*******************************************************************
 Check out the included Arduino sketches and the getting started 
 guide here! 
 https://github.com/andium/AmazonDRS
 
 This is an Arduino implementation of an Amazon Dash Replenishment
 device. It currently supports the critical API endpoints necessary
 for registering a device and submitting replenishment requests. This 
 library is tightly coupled to the WiFi101 library, which means it will 
 work great with the Arduino MKR1000, Adafruit Feather MO w/ the ATWINC1500, 
 Arduino WiFi101 shiled or anywhere the WiFi101 library is supported. Json 
 parsing is provided via ArduinoJson, thanks bblanchon!
 https://github.com/bblanchon/ArduinoJson
 
 Written by Brian Carbonette Copyright © 2016 Andium

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 *******************************************************************/

#include "AmazonDRS.h"

AmazonDRS DRS = AmazonDRS();

          Serial.print(slotId);
          Serial.println(" is not available at this time");
        }

    }

}

bool buttonPushed(void)
{
  int buttonState = digitalRead(dashButton);

  if(buttonState && ((millis() - buttonHigh) > 5000))
  {
    buttonHigh = millis();
    Serial.println("Button pressed!!");
    return true;
  }
  else
  {
    return false;
  }
}
