need help with emissions stuff (pic)

Hey,
i am trying to get rid of unnecessary

in the engine bay and need to know what the heck this is in the picture. the hose going up goes to the valve cover, and the hose going down goes to the charcoal cannister. the electrical connection isnt connected to anything, what is it for and where does it hook up? any help is greatly appreciated