How to send ultrasonic sensor data from arduino to app inventor with arduino uno wifi r4 (comes with esp32 built in)

Have you seen

?

You would have to set up a web server on the Arduino or have it talk to a common web server available to the Ai2 app.

Search this board for MQTT.

Alternatively, does it have Bluetooth support?
We have lots of those.