When I got close to the penguins, I had to cover my nose. Surprisingly, they smelled terrible.

(What is part of speech of 'close' in the sentence? Is it an adjective or an adverb?)

Although this is not my area of expertise, it looks like an adjective to me. Look at "close" in relation to the previous and following three words.