Arduino GPIO pin status

Didn't know about MQTT, look at this for examples ESP32. MQTT. Broker. Publish. Subscribe. ThingSpeak