     #define D6_pin  6
     #define D7_pin  7
     LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);
-}
+#endif
 
 
 const int potPin1 = A0;

  while (Serial.available()) {
    // get the new byte:
    char inChar = (char)Serial.read();
    if (debug == 1){
       lcd.clear();
       lcd.setCursor(0,0);
       lcd.print(inChar);
    }
    // add it to the inputString:
    inputString += inChar;
    // if the incoming character is a newline, set a flag

String statusString = "";        // a string to hold the output

void setup(){
#ifdef DEBUG
 Wire.begin(); //start I2C bus
 delay(100); //wait for bus to stabalise
 lcd.begin (16,2); // 2 rows x 16 char
 // Switch on the backlight
 lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
 lcd.setBacklight(HIGH);
 lcd.clear();
 lcd.setCursor(0,0);
 lcd.print("ArcEyes MD03 I2C");
 lcd.setCursor(0,1);
 lcd.print("SandBox");
 delay(30);
#endif

  pinMode(rlyPin1,OUTPUT); // Setup pins
  pinMode(rlyPin2,OUTPUT); // Setup pins
  pinMode(rlyPin3,OUTPUT); // Setup pins
