       notConnected = false;
     else
     {
-      Serial.println("Not connected");
+      debugln("Not connected");
       delay(1000);
     }
   }
 
-  Serial.println("connecting...");
+  debugln("connecting...");
 
   // if you get a connection, report back via serial:
   if (client.connect(server, port))
   {
-    Serial.println("connected");
+    debugln("connected");
     // Make a HTTP request:
     client.beginWrite();
     client.print("GET ");


// URL, path & port (for example: arduino.cc)
char server[] = "arduino.cc";
char path[] = "/";
int port = 80; // 80 for HTTP

void setup()
{
  // initialize serial communications
  Serial.begin(9600);
  Serial.println("Starting Arduino web client.");
  // connection state
  boolean notConnected = true;


#include <SoftwareSerial.h>
#include <SIM900.h>

#define debug Serial1

// PIN Number
#define PINNUMBER ""

