F01 Error Whirlpool Dryer.
The F1 error code is the code for failure of the main control board and it will need to be replaced. The board you need for the model you gave is linked below.
https://prismparts.com/products/oem-whirlpool-dryer-electronic-control-board-pp2805106?_pos=3&_sid=f7cb974fd&_ss=r