I want to send random numbers from 1 to 100 to adafruit io cloud with node mcu v3 (esp8266). Then i want to send that exact same data realtime to an app that is made by me in Thunkable app Builder. Feel free to ask anything if u find some doubts.
the current code am using is
#include <AdafruitIO.h>
#include <AdafruitIO_WiFi.h>
#define IO_USERNAME "xxxxxxxxx"
#define IO_KEY "xxxxxxxxxxxx"
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, "Aeroponics Stand 1", "1234567890");
AdafruitIO_Feed *humidity = io.feed("humidity");
void setup() {
Serial.begin(9600);
io.connect();
}
void loop() {
io.run();
int randomHumidity = random(1, 101); // Generate random number between 1 and 100
humidity->save(randomHumidity); // Send to Adafruit IO
delay(1000); // Wait for 1 second
}
i got this from an ai called blackbox.ai
please help me fast because the deadline for the project is tomorrow 28/1/25
i have done till sending data to adafruitio now i wanna send that to thunkable app i made