Arduino coding for Arduino to control the LED brightness using slider in Cayenne

Hye , I need to control the brightness of the LED , can you help me to program the arduino in cayenne loop for control the brightness ? I have tried but it not work. Help me please .

can you share the code you have tried out.