Sorry I didn't see the reply notification.
I just used a ESP32 board from amazon.
To code with Arduino it's basically C code with a few differences.
I don't want to send the app as like I said it was the first one I made so there are better ways to do it.
E.g. look at MQTT : ESP32. MQTT. Broker. Publish. Subscribe. ThingSpeak
Or you can do something like what was done in this video : https://youtu.be/ZAqNKaX3LQ0