 const int ANALOG_PIN = A0; // The only analog pin on the Thing
 const int DIGITAL_PIN = 12; // Digital pin to be read
 
+//const int MOTOR_PWM_LEFT = D1; // Thing's onboard, green LED
+//const int MOTOR_DIR_LEFT = D3; // Thing's onboard, green LED
+
+
 WiFiServer server(80);
 
 void setup() 

  String macID = String(mac[WL_MAC_ADDR_LENGTH - 2], HEX) +
                 String(mac[WL_MAC_ADDR_LENGTH - 1], HEX);
  macID.toUpperCase();
  String AP_NameString = "ESP8266 Thing " + macID;

  char AP_NameChar[AP_NameString.length() + 1];
  memset(AP_NameChar, 0, AP_NameString.length() + 1);

  s += "Content-Type: text/html\r\n\r\n";
  s += "<!DOCTYPE HTML>\r\n<html>\r\n";
  // If we're setting the LED, print out a message saying we did

  String ms = "";

  if (val >= 0)
  {
    s += "LED is now ";
    s += (val)?"on":"off";
  }

  // motor functions
  else if (mval = 0)
  {
    ms += "left motor is now turning backward (ccw)";
  }
  else if (mval > 0)
  {
    ms += "left motor is now turning forward (cw)";
  }


  else if (val == -2)
  { // If we're reading pins, print out those values:
    s += "Analog Pin = ";
