 // relay related setup
 #define relayPin1 8
 #define relayPin2 9
+#define relayPin3 10
+
+// booleans for checking if automation is required
+boolean autoMoisture = true;
+boolean autoAirTemperature = true;
+boolean autoLight = true;
 
 // setup sensor reading interval
 unsigned long then = 0; // initialize previous milliseconds variable

/*
Arduino based self regulating kitchen garden
 
 */
#include <DHT.h>
#include <SoftwareSerial.h>
#include <Sensirion.h>

    sensorReadings();
    
    // React on sensor values
    reactAirTemperature();
    reactLight();
    reactMoisture();
    
    
    
    
  
  }
  
  digitalWrite(ledPin, LOW);
  
  if (bluetooth.find("t")) {
    int data = bluetooth.parseInt();
    setGoodAirTemperature(data);
  }
  if (bluetooth.find("w")) {
    int data = bluetooth.parseInt();
    setGoodSoilMoisture(data);
  }
  if (bluetooth.find("l")) {
    int data = bluetooth.parseInt();
    setGoodLDRValue(data);
  }
  
  if (bluetooth.find("m")) {
    int data = bluetooth.parseInt();
    if (data == 0)
    {
      autoAirTemperature = false;
    }
    if (data == 1)
    {
      autoLight = false;
    }
    if (data == 2)
    {
      autoMoisture = false;
    }
  }
  if (bluetooth.find("a")) {
    int data = bluetooth.parseInt();
    if (data == 0)
    {
      autoAirTemperature = true;
    }
    if (data == 1)
    {
      autoLight = true;
    }
    if (data == 2)
    {
      autoMoisture = true;
    }
  }
  

