   if (sensorData.hall == sensorThresholds.door) {
     status = HIGH;
   }
+  if (sensorData.tempInsideC < sensorThresholds.minTempInsideC) {
+    status = HIGH;
+  }
+  if (sensorData.tempInsideC > sensorThresholds.maxTempInsideC) {
+    status = HIGH;
+  }
   return status;
 }
 

void default_sensor_thresholds() {
  sensorThresholds.light = 50;
  sensorThresholds.door = HIGH;
}

//------------------------------------------------------------------------------

struct SensorThresholds {
  unsigned int light;
  unsigned int door;
  float minTempInsideC;
  float maxTempInsideC;
};

// Controller MAC address - must be unique on network for DHCP to work
