Heating Element + SSR + Mosfet + Waveshare2040Zero

There's nothing in PID that prevents using relays, it has been used way before transistors became available. Timeframe is different though, making SSR more practical.