 //********************************************************************************
 //********************************************************************************
 
-/*
 float mapFloat(float x, float in_min, float in_max, float out_min, float out_max)
 {
   return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
 }
-*/
 
 void setPinsMode() {
     pinMode(I2CEN, OUTPUT);

}

int readSoilTemperature() {
    SOILTV = analogRead(SOILT);

    return 1;
}

int readSoilHumidity() {
    SOILHV = analogRead(SOILH);

    return 2;
}

double POWR3V = 0; //Watts

int SOILT = A6;
float SOILTV = 0; //Celsius: Temperature (C) = Vout*41.67-40 :: Temperature (F) = Vout*75.006-40

int SOILH = A7;
float SOILHV = 0; //Volumetric Water Content (VWC): http://www.vegetronix.com/TechInfo/How-To-Measure-VWC.phtml

bool BMP180OK = false;
float BMP180Pressure = 0; //hPa
