Esp8266 Cayenne dashboard

How is the sensors added to the dashboard ? Is there any separate code for the sensors ? If so could you pls provide the code for DH11 and PRI motion sensor for the board ESP8266

DHT Sensor Cayenne-MQTT-Arduino/DHT.ino at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub
But this is for Arduino + ethernet shield. You will have to modify it to work on esp8266 Cayenne-MQTT-Arduino/examples/Connections/ESP8266 at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub