That last picture is your knock sensor.
I'm pretty sure it is one of the two wires near the front of your engine on that first picture. I believe the one on right near the triangle (which is the t-stat) is the temp sensor for your dash. The one on the left is the temp sensor for the for the ECM. Not 100%, but think that is the case.