Dryer won't heat

I have a Kenmore Elite Dryer (Model# 110.73952102). I recently replaced the electronic panel after one of the resistors was fried and switched the heat relay with the motor relay. Now everything else works except the fact that there is no heat. I also opened the kick plate to clean a little bit and found a loose red/yellow wire that originates from the moisture sensor @ the electonic panel. I donot know if it should be left like that, or be attached to something?

Thanks

How do you get the top of the washer up to change out the lid switch?