if(started){ //Enable this two lines ifst you want to send an SMS. if (sms.SendSMS("85861381", data)) Serial.println(F("\nSMS sent OK"));

}}

void iniciarSD(){ Serial.println(F("Initializing SD card...")); // make sure that the default chip select pin is set to // output, even if you don't use it: pinMode(10, OUTPUT);

// see if the card is present and can be initialized: if (!SD.begin(chipSelect)) { Serial.println(F("Card failed, or not present")); // don't do anything more: return; } Serial.println(F("card initialized."));}

// Calculate pressure given up// calibration values must be known// b5 is also required so bmp085GetTemperature(...) must be called first.// Value returned will be pressure in units of Pa.long bmp085GetPressure(unsigned long up){ long x1, x2, x3, b3, b6, p; unsigned long b4, b7;