Replacement of Sensor in the Dryer

I need to replace the sensor in the dryer as it broke. First repair in 16 years - says a lot for Maytag. Anyway, I see I can order the sensor part, but am not sure if I need anything else. The wires seem to be intact, but I’m not sure where one of them goes or how to check it. I found one and was able to see that it was connected well.