   }
 
   previousButtonState = currentButtonState;
+}
+
+void checkTPHv2()
+{
+  currentTemperature = bme.readTemperature();
+  currentPressure = bme.readPressure() / 100.0F;
+  currentHumidity = bme.readHumidity();
 }
 
 void checkGPS()

boolean routeStarted = false;

unsigned long interval = 1000; // the time we need to wait
unsigned long previousMillis = 0; // millis() returns an unsigned long.

void setup()
{
  SoftSerial.begin(9600);
  Serial.begin(9600);
  pinMode(BUTTON_PIN, INPUT);

/*--- GROVE GPS ---*/
#include <SoftwareSerial.h>
/*-----------------*/

/*--- TPH V2 ---*/
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
/*--------------*/

/*--- GROVE BUTTON ---*/
#define BUTTON_PIN 20
/*--------------------*/

/*--- TPH V2 ---*/
#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10
#define SEALEVELPRESSURE_HPA (1013.25)
/*--------------*/

SoftwareSerial SoftSerial(2, 3);
char buffer[256];
