"words hung in the air like smoke" is a simile because similes have the words 'as' or 'like' in them. Metaphors do not have the words in them.
"computers in Mikaela's office are dinosaurs" is a metaphor, while "the printer is as slow as a sloth" is a simile.