Measuring Altitude and Deploying Parachute