Michael,
The F22 error code is showing that the Outlet thermistor is reading open. The 2 red wires would most likely go to the outlet thermistor with the issue that you are having. But you will want to do the following checks if the wire get reconnected and there is still a problem.
TEST #4a Thermistors
Outlet Thermistor
The machine control electronics monitors the
exhaust temperature using the outlet thermistor,
and cycles the heater relay on and off to maintain
the desired temperature.
Begin with an empty dryer and a clean lint screen.
1. Plug in dryer or reconnect power.
2. Start the Timed Dry cycle.
3. If after 60 seconds, or flashes in the
display and the dryer shuts off, the thermistor
or wire harness is either open or shorted.
Unplug dryer or disconnect power.
Check wire connections at the machine
control electronics and thermistor. See
Accessing & Removing the Electronic
Assemblies, page 9, and for thermistor
location, see figure 11, page 6.
If wire connections are OK, check the outlet
thermistor resistance per step 5.
4. If or does not flash in the display,
the connections to the thermistor are good.
Therefore, check the exhaust temperature
value at any or all of the temperature levels
in question, using the Timed Dry cycle,
and the following process:
Hold a glass bulb thermometer capable of
reading from 90° to 180°F (32° to 82°C) in
the center of the exhaust outlet. The correct
exhaust temperatures are as follows: On high the heat turns off at 155 degrees Fahrenheit +/-5 degrees, on medium high it turns off at 150 degrees, medium 140 degrees low 125 degrees extra low at 105 degrees. All of these are +/- 5 degrees and on all settings the heat turns back on 10 -15 degrees below the heat turn off temp.
*The measured overshoot using the glass bulb
thermometer in the exhaust outlet can be 30°F
(17°C) higher.
5. If the exhaust temperature is not within
specified limits, or you have come here from
step 3, perform the following:
NOTE: All thermistor resistance measurements
must be made while dryer is unplugged or
disconnected from power.
ELECTRIC DRYER: Remove the P4 connector,
then measure the resistance between P4-3 (red
wire) and P4-6 (red wire) at the connector.
If the resistance is OK, check P4-3 and P4-6
to dryer ground.
If resistance is greater than 0 (zero), replace
wiring harness.
If the resistance is OK, check P14-3 and
P14-6 to dryer ground.
If resistance is greater than 0 (zero), replace
wiring harness.
Outlet thermistor resistances are as follows.
50 degrees 19 - 22K ohms range, 60 degrees 14.8 - 16.8K ohms, 70 degrees 11.5 - 13.5K ohms, 80 degrees 8.5 -10.5K ohms, 90 degrees 6.8 - 8.8K ohms and 100 degrees 5 - 7K ohms.
If the thermistor resistance does not agree
with table, replace the outlet thermistor.
If the thermistor resistance checks agree
with the measurements in the table, replace
the machine control electronics.