1995 525i AT
125,000 miles

I'm trying to replace the oil level sending unit. I've removed the three nuts securing it to the pan and it has lowered about 2 inches... but I can't seem to find where/how the electrical... connector goes... and its holding on for dear life.

Can anybody advise how to best remove this? and how do I connect it when done?