Hi,
You can also check out my other link regarding distance sensor graph plots accurately the altitude without having a sensor connected.