Pulmonary hypertension can be diagnosed with echocardiography, or echo. Echo uses sound waves to create moving images of your heartbeat. These images can show how well your heart is working.