         toggleLamp();
       }
     }
-    // otherwise ensure interior light is off.
-    else {
+    // otherwise if brightness is less than 3% or greater than 11% ensure interior light is off.
+    else if (brightness < 3 || brightness > 11) {
       if (lampState) {
         if (Debugging) {
           debugger.println("Turning off interior light.");

const boolean Debugging = true;

// Digital & analog pins for various components
const int tempSense     =  2; // DS18S20 Temperature Sensor
const int lightSense    = A0; // Light Sensor
const int lampRelay     = 10; // Lamp Relay
const int heaterRelay   =  9; // Water Heater Relay
const int doorOpen      = 37; // MotorA left
const int doorClose     = 38; // MotorA right
const int doorSpeed     = 39; // MotorA speed
const int doorTop       = 40; // Reed Switch
const int doorBottom    = 41; // Reed Switch
const int doorOpenLED   = 11; // Indicator light (blinks during open/close steady on when open)
const int doorClosedLED = 12; // Indicator Light (blinks during open/close steady on when closed)
const int fan           = 35; // MotorB left
const int fanSpeed      = 36; // MotorB speed
const int rtcSDA        = 20; // Real Time Clock SDA (i2c arduino mega)
const int rtcSCL        = 21; // Real Time Clock SCL (i2c arduino mega)

// LCD Pins
const int lcd_4  = 24; // LCD RS
const int lcd_5  = 25; // LCD R/W
const int lcd_6  = 26; // LCD Enable
const int lcd_11 = 27; // LCD Data 4
const int lcd_12 = 28; // LCD Data 5
const int lcd_13 = 29; // LCD Data 6
const int lcd_14 = 30; // LCD Data 7
const int lcd_bl = 13; // LCD Backlight+

// ESP8266 Settings
#define debugger Serial // Pins 0 and 1

  }
  esp.wifiCb.attach(&wifiCb);
  esp.wifiConnect(wHost, wPass);

  /**
   * Setup pin modes
