I switched for an Arduino nano to an ESP32-Wroom and parts of my code isn't working. from my understanding the code isn't working from the "//Check If Is Activating" part, because on the real project everything until that part works.
(This isn't the full code, it's the part that isn't working)
the code is in the link(it was too long): https://pastebin.com/iMrhFERP
Pastebin
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.