I did something wrong there. This is the after picture..
Dude I am pretty sure that is a pan overflow safety switch. I hope but would not be surprised if someone actually ran the stat wire through the condensate line.tstat wire through the trap? I've never seen that before.