 
 // ---- NODE
 #define NODE_ID 110
-#define CHILD_ID_MODE 3 // MODE true: AC, false: Heating
-#define CHILD_ID_RELAY_AC 2 // Relay for Air conditioner
+#define CHILD_ID_LDR 3
+#define CHILD_ID_MODE 2 // MODE true: AC, false: Heating
 #define CHILD_ID_RELAY 1    // Relay for heating
 #define CHILD_ID_TEMP 0
 

  if ((iteration == 0) || temperatureChanged(lastTemperature, temperature)) {
    debug(PSTR("Send temperature %s\n"), dtostrf(temperature, 2, 1, outstr));
    lastTemperature= temperature;
    iteration = sendValue(msgTemperature.set(temperature, 1));
  }
  iteration = (iteration + 1) % MAX_ITERATION;
}

uint8_t sendValue(MyMessage &msg)


  // --- RELAY
  hw.present(CHILD_ID_RELAY, S_LIGHT);
  hw.present(CHILD_ID_MODE, S_BINARY);
  hw.present(CHILD_ID_LDR, S_LIGHT_LEVEL);
  
  // Set last mode 
  MODE = hw.loadState(CHILD_ID_MODE);
