In a project I am doing, I have to send analog readings of a soil moisture sensor through zigbee. I have connected the sensor Vcc to 5v and ground; the zigbee Vcc to 3.3v and ground. The analog pin of sensor to Txx pin of adapter on which the zigbee is mounter. On the coordinator zigbee, i/o packets are being recieved..but it is always giving value of "020a" or "020b" irrespective of the data from sensor(on xctu). I have also fed the analog data of sensor through voltage divider to keep it within 1.2v range..can you suggest what I am doing wrong??
(On connecting sensor directly to arduino the sensor reading vary in the range 300-1023...only issue is in the i/o packet received at coordinator)