What is the proper name for this?

I was hoping someone could tell me what this fitting is called?
And I also need to know how to remove the sender/sensor?
I assume the black wire goes into the under hood harness. If not where does it lead to?
Thanks!