 //float pressure;
 //float dewptf; // [dewpoint F] - It's hard to calculate dewpoint locally, do this in the agent
 
-float batt_lvl = 11.8; //[analog value from 0 to 1023]
-float light_lvl = 455; //[analog value from 0 to 1023]
-//Rain time stamp Niroshan
+//float batt_lvl = 11.8; //[analog value from 0 to 1023]
+//float light_lvl = 455; //[analog value from 0 to 1023]
+//Rain time stamp Niroshan // Has to be global variable !
 int Rainindi=0;
 //Variables used for GPS
 //float flat, flon; // 39.015024 -102.283608686

  //Calc dewptf

  //Calc light level
  light_lvl = get_light_level();

  //Calc battery level
  batt_lvl = get_battery_level();

//} //END OF GO CALC WEATHER FUNCTION


//This is for the 16x2 LCD
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

//GPS
TinyGPSPlus gps;

static const int RXPin = 5, TXPin = 4; //GPS is attached to pin 4(TX from GPS) and pin 5(RX into GPS)
SoftwareSerial ss(RXPin, TXPin); 

//Pressure & Humidity sensors on the weather shield
MPL3115A2 myPressure; //Create an instance of the pressure sensor
HTU21D myHumidity; //Create an instance of the humidity sensor

