how to pass slider values to void loop()?

when using MyFeed->onMessage(messageHandle) to receive data, is it possible to make messageHandle to return a value so that it can be used in void loop()?

I'm trying to use values from a slider in Adafruit IO dashboard to calibrate humidity sensor values, and to do that the value/integer needs to be passed to void loop() to be added or subtracted from sensor readings.

Thanks for your help!

bekathwia2 months ago

Sure, here's more about Arduino functions:

Additionally, here are a bunch more tutorials using the AIO library, perhaps some inspiration can be gleaned: