DIY filament drying unit

I am trying to make a filament drying unit using an old food dehydrator. I was told to use a triac for power control so I purchased one from amazon. https://www.amazon.com/gp/product/B076GFNRFZ/ref=ppx_yo_dt_b_asin_title_o08_s00?ie=UTF8&psc=1

I have an uno and a dht22 for the temp but I am really new to arduino. I am mainly looking for a helping hand with the code side.

Hello
Welcome to the Arduino fora.
Before you do anything else please take a moment to read General guidance
And
How to use this forum

People here are happy to help, but you have to show us what you've tried and what you are stuck with.

I would suggest getting some help from somebody that has experience with the AC mains, they can quickly become fatal. You can hold off on this until you get things operating. You can experiment and run everything for debugging on 12V AC and be safe but use a 12V lamp for the food dehydrator, it won't run on 12V but you can see what is happening. This will allow you to learn all about zero cross and how to fire the triac in whatever quadrant you want. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil

That TRIAC module allows for zero crossing and phase cutting but for a heater that's normally not necessary. Just switch it on and off for a few seconds at a time, after all heaters react that slow. The reaction time of the temperature sensor isn't helping here, of course.

The TRIAC module can be treated as relay module, but considering the size of the heat sink it won't handle more than about 2A of current.