I had to removey dryer's plastic lint grid to reach for something that got behind and noticed it has wires coming in (lower right).
What is the reason this seemingly simple piece of plastic has wires coming in?
Home Improvement Stack Exchange is a question and answer site for contractors and serious DIYers. It only takes a minute to sign up.Sign up to join this community
It's almost certainly a moisture sensor. Search YouTube for dryer moisture sensor bar, and you should get a bunch of results showing how to replace them.
That is the moisture sensor bar. When wet clothes tumbling in the dryer bridge the gap between the strips it tells the control the clothes are still wet and the dryer needs to run longer. There is nothing wrong with it, that is how it should be. Just put it back the way out was and you should be good.