   }
   
   write8(VCNL4000_IRLED, 20);        // set to 20 * 10mA = 200mA
+#if DEBUG
+  Serial.println("VCNL");
   Serial.print("IR LED current = ");
   Serial.print(read8(VCNL4000_IRLED) * 10, DEC);
   Serial.println(" mA");
-  
   Serial.print("Proximity measurement frequency = ");
+#endif
   uint8_t freq = read8(VCNL4000_SIGNALFREQ);
+#if DEBUG
   if (freq == VCNL4000_3M125) Serial.println("3.125 MHz");
   if (freq == VCNL4000_1M5625) Serial.println("1.5625 MHz");
   if (freq == VCNL4000_781K25) Serial.println("781.25 KHz");
   if (freq == VCNL4000_390K625) Serial.println("390.625 KHz");
+#endif
   
   write8(VCNL4000_PROXIMITYADJUST, 0x81);
+#if DEBUG
   Serial.print("Proximity adjustment register = ");
   Serial.println(read8(VCNL4000_PROXIMITYADJUST), HEX);
+#endif
   
   // Initialize the pushbutton pin as an input.
   pinMode(button_pin, INPUT);

void loop()
{
  photocell_reading = analogRead(photocell_pin);
  Serial.print("Analog reading = ");
  Serial.print(photocell_reading);
  Serial.print("\t");
  
  // When it gets bright or dark, make a sound.
  // Don't play the sound again until it's normal lighting out.

#include <Adafruit_PWMServoDriver.h>
#include <Wire.h>
#include "pitches.h"

#define DEBUG 0

// **************************
// **** PROXIMITY SENSOR ****
