Using current sensor trough ESP8266

you need to use the cayenne code for esp8266 Cayenne-MQTT-Arduino/examples/Connections/ESP8266 at master · myDevicesIoT/Cayenne-MQTT-Arduino · GitHub and add the sensor code along with the line i shared above. if you need to change it watt data type then have a look at this Data types for Cayenne MQTT API