Interfacing an Altimeter that has Serial Output

The "buffering input" code below on Nick's page below would seem to do what you are looking for (assuming the altimeter values are sent as characters). You could add the atoi function if needed.