   case PKT_RGB:
     send_rgb_rf24(toaddr, type, buffer);
     break;
+  case PKT_TEMP:
+    send_temp_rf24(toaddr, type, buffer);
+    break;
+  case PKT_HUMID:
+    send_humid_rf24(toaddr, type, buffer);
+    break;
   }
 }
 

  } else {
    return sensornet.readRgb(toaddr, id);
  }
}

void mqtt_callback(char* topic, byte* payload, unsigned int length) {

  sensornet.addPowerRcvHandler(sendPowerMqtt);
  sensornet.addSwitchRcvHandler(sendSwitchMqtt);
  sensornet.addRgbRcvHandler(sendRgbMqtt);
  sensornet.addTempRcvHandler(sendTempMqtt);
  sensornet.addHumidRcvHandler(sendHumidMqtt);
}

void loop() {
