I don't think the pressure sensor can, but the phone bit does that quite well (sometimes).
Seems a lot/most android devices since about 2012 have a barometer chip chucked in. Have a look in the app store for barometer apps.
Presumably it's used to track altitude changes when using navigation/tracking/NSA apps.
EDITED: 24 Mar 2014 23:06 by KOSWIX