So I have these random parts on the driver's side of my engine bay that aren't connected to anything. Can anyone identify what these are? Here are the first 2:

Note: I took this picture after reconnecting the wire to this part, but I'm not sure what its function is. The wire was just dangling below it:

IMG_5519.jpg

Then this:

IMG_5460.jpg

Thoughts?

I'll post some more later this afternoon