 const unsigned int UPDATE_INTERVAL = 15000;
 const unsigned int DIGITS = 2;
 const unsigned int PRECISION = 2;
+const unsigned int DHTTYPE = DHT22;   // DHT 22  (AM2302)
 
 /* --- Variables --- */
 int chksum;
 bool canbus_status = 0;
 bool pump_off = false;
 bool fan_off = false;
-bool irrigation_required = false;
 bool cooling_required = false;
 
+ 
 int temperature_pv = 0;
 int moisture_pv = 0;
+float internal_humidity = 0;
+float internal_temperature = 0;
 
 // Buffers
 char output_buffer[OUTPUT_LENGTH];

    temperature_history.add(ds18b20.getTempCByIndex(0));
  }
  temperature_pv = int(temperature_history.getAverage());
  
  // Check CANBus
  if (canbus_status) {


const unsigned int TEMP_SENSOR_PIN = 5;
const unsigned int MOISTURE_DO_PIN = 6;
const unsigned int SENSOR_POWER_PIN = 7; 
const unsigned int DHTPIN = 2; // what pin we're connected to

// Et cetera
const unsigned int SAMPLES = 9;
