analog input with "pot" and pmw output with LED using xbee s2

I want to do the analog input with “pot” and pmw output with LED using xbee s2 ( the examples online ) but it’s not working, can someone help me out ?

Can you provide the link to the example you are referring to?

http://examples.digi.com/sensors/802-15-4-analog-input-with-a-potentiometer/3/

And

http://examples.digi.com/lights-motors-more/802-15-4-pwm-output-with-an-led/3/

which radio are you using?

Xbee pro s2b

The examples you are using are for the XBee 802.15.4 modules and not the modules you are using. This is why it is not working. You need to find an example for the XBee ZB or Zigbee based products.