I2C Temp Threshold

Here is the stupid function in question:

void printTemperature(DeviceAddress deviceAddress)
{
  float tempC = sensors.getTempC(deviceAddress);
  if (tempC == -127.00) {
    Serial.print("No Connection");
  } else {
    Serial.print("C: ");
    Serial.print(tempC);
    Serial.print(" F: ");
    Serial.print(DallasTemperature::toFahrenheit(tempC));
  }
}

Getting rid of the stuff that actually prints the temperature, we are left with:

void printTemperature(DeviceAddress deviceAddress)
{
  float tempC = sensors.getTempC(deviceAddress);
}

You can see that there is only ONE line that actually does something critical. Is there a reason to hide that in a function? I don't think so.

Move that line of code to the place in your sketch where you call the stupid function, and you then have something (tempC) that you can use in an if statement.