Whirlpool Duet dryer f 22 error

new dryer stays on for 1 min then shuts off f22 is what the error reads. Seen that it is the Thermistor. How can this be bad on a new machine? just switch it out that easy to do?? Thanks

Here are your parts
Replacement parts for WHIRLPOOL WED8410SW2 27" Electric Dryer | AppliancePartsPros.com

Here is the tech sheet
http://www.servicematters.com/docs/wiring/TechSheets_11_17_09/Tech%20Sheet%20-%20W10068670.pdf

[COLOR=“Blue”]new dryer stays on for 1 min then shuts off f22 is what the error reads. Seen that it is the Thermistor. How can this be bad on a new machine?[/COLOR]
Just about any part can be defective in a new machine.
It could be the thermistor is open but also could be that the control board is toast. Could be just that the plug for the thermistor came loose during shipping.
I would get it repaired under warranty. If you take it apart and run into difficulty or it does turn out to be the board then they could void your warranty by claiming you caused the problem.

[COLOR=“Blue”] just switch it out that easy to do??[/COLOR]
I am assuming you mean replacing it, as I said above I would get it repaired under warranty. Beside the above reason you will be creating a service history on the unit just in case it is replaced and blows/opens again in two weeks.