I wandered lonely as a cloud/That floats on high o'er vales and hills" is an example of a simile.
A figure of speech is used to add emphasis or clarity to descriptions by comparing one thing with another of a different kind.
"I was a cloud that floats on high..." would be a metaphor, this should be a simile. Here, the word "as" is used, which is equivalent to the word "like a," which describes a simile.
Learn more about simile, here:
https://brainly.com/question/1759682
#SPJ1