 #define PASSWORD "pwd"
 
 #define DEFAULT_TARGET_TEMP 19
+#define MAX_TEMP 29
+#define MIN_TEMP 2
 
-#define COOL_PIN 13
-#define HEAT_PIN 14
+#define COOL_PIN 14
+#define HEAT_PIN 13
 #define DHTPIN 12
 
 #define TEMPERATURE_CONTROL_RANGE 1

    
    pinMode(HEAT_PIN, OUTPUT);
    pinMode(COOL_PIN, OUTPUT);
    digitalWrite(HEAT_PIN, HIGH);
    digitalWrite(COOL_PIN, HIGH);
    
    publishingPeriod = publishingPeriod > 200 ? publishingPeriod : 200;



void setTargetTemp(float message) {  
  Serial.println("set target" + String(message));
  if (MIN_TEMP < message < MAX_TEMP) {
    targetTemp = message;
    EEPROM.put(eeAddress, targetTemp);
    EEPROM.commit();
  }
};

void setup() {
