Sending QR data to Arduino Uno/ESP32

Hi, I’m currently doing a project where I want to send my QR data (that I have filtered out) to either Arduino Uno (then ESP32 will send the data to cloud) or ESP32 itself. Any leads on how to do so? Any guides will be helpful, thanks.

Below is my code that I constructed based on the example in the IDE;

import sensor, image, time, pyb

p = pyb.Pin("P7", pyb.Pin.OUT_PP)
g = pyb.Pin('P8', pyb.Pin.OUT_PP)
h = pyb.Pin('P9', pyb.Pin.OUT_PP)

sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)

clock = time.clock()
my_list_1 = ['Test']
my_list_2 = ['Assassins Creed']
my_list_3 = ['Novel']
p.low()
g.low()
h.low()

while(True):
    clock.tick()
    img = sensor.snapshot()
    img.lens_corr(1.8)
    print(clock.fps())
    codes = img.find_qrcodes()
    for code in codes:
            img.draw_rectangle(code.rect(), color = (255, 0, 0))
            print(code)
    if codes:
        if code.payload() in my_list_1:
            p.high()
            pyb.delay(10000)
            p.low()
            pass

        if code.payload() in my_list_2:
            g.high()
            pyb.delay(10000)
            g.low()
            pass

        if code.payload() in my_list_3:
            h.high()
            pyb.delay(10000)
            h.low()
            pass

What I wish to do is that the QR’s data to be sent to a google spreadsheet or some sort (cloud). I’m a newbie myself so I wish to learn more on how to do so (with ESP32 or Arduino Uno/ESP32).

Use the UART of the openMV Cam and just send the QR code over the UART as a string followed by a newline. The Arduino then just needs to readline() to grab the code.