Electronic barometer