Testing the barometer's altitude requires a comparison with the threshold:
if (bmp.readAltitude(1013.25) > -14.5)