How to remove air temp sensor 98 Civic HX

The air temp sensor is held on by threaded devices that seem to have smooth, rounded heads.

How do you get them out?

And, they are at the back of the engine so that there is limited space between the engine and firewall.

Like this?

Pry 'em out with a flat blade screwdriver.