I have wrote this program and this program work but it shows wrong distance and I don't know what's problem?!
it shows 5.8cm when distances are more than 260cm but it shows good when distances are less than 260cm.
please help me to do it.