     Serial.begin(57600);
     FreqCount.begin(1000);
 
-    hasRoomSensor = bme.begin();
+    hasInteriorSensor = bme.begin();
     dallasTemperature.begin();
-    hasInternalSensor = (dallasTemperature.getDeviceCount() > 0);
+    hasEnclosureSensor = (dallasTemperature.getDeviceCount() > 0);
 }
 
 void loop() {

    msg += ",INTENSITY=";
    msg += rainIntensity;

    if (hasInternalSensor) {
        dallasTemperature.requestTemperatures();
        float internalTemp = dallasTemperature.getTempCByIndex(0);
        msg += ",INTERNALTEMP=";
        msg += internalTemp;
    }
    if (hasRoomSensor) {
        float roomTemp = bme.readTemperature();
        float roomHumidity = bme.readHumidity();
        float roomPressure = bme.readPressure();
        msg += ",ROOMTEMP=";
        msg += roomTemp;
        msg += ",ROOMHUMIDITY=";
        msg += roomHumidity;
        msg += ",ROOMPRESSURE=";
        msg += roomPressure;
    }
    nmeaSerial.print(msg);

    delay(1000);
}

// SDA A4

static int rainFrequency = 0;
static bool hasInteriorSensor = false;
static bool hasEnclosureSensor = false;
static Adafruit_BME280 bme;
static OneWire onewire(PIN_ONEWIRE);
static DallasTemperature dallasTemperature(&onewire);
static NMEASerial nmeaSerial(NULL);

static bool lastRainState = false;
static unsigned long lastReportTime = 0;

void setup() {
    pinMode(PIN_DRD11A_RAIN, INPUT);
