   float temp = temp_sensor.getTempCByIndex(0);
   Serial.println(temp);
   
-  int h = constrain(analogRead(h_pin), 255, 1005);
-  int soil = map(h, 255, 1005, 100, 0);
+  int h = constrain(analogRead(h_pin), 255, 1023);
+  int soil = map(h, 255, 1023, 100, 0);
   Serial.println(soil);
   
   DHT11.read(ah_pin);

  
  if(soil > h_upper){
    digitalWrite(relay_2, LOW);
  }
  
  send_log(lux, temp, soil, ah);

int h_lower;
int h_upper;
int l_target;
boolean fan_pump;

int BH1750address = 0x23;
byte buff[2];

void setup(){
  Serial.begin(9600);
  Ethernet.begin(mac, ip);
  Serial.println(Ethernet.localIP());
  
  pinMode(relay_1, OUTPUT);
  pinMode(relay_2, OUTPUT);
  pinMode(relay_3, OUTPUT);
