APM 2.6 sonar not working

i have apm 2.6 with quadcopter configuration … it flies perfectly. but i wanted to add sonar to it for better altitude hold capabilities… i have made the connections all right and also enables the range finder parameters correctly … but no luck… still shows 4.8 v

i thought sensor is bad so i gave the separate 0 v and 5 v respectively to the A0 pin of apm and the range was shown correctly … thus i checked the sensor with arduino uno and the sensor is also working fine …

so now i dont know what is the problem please help me out guys