How to send sensor data to App Inventor via Bluetooth

I use an MPU6050 with I2Cdevlib to get -180 to 180 gyro data, use an HC-05 for bluetooth data transmission, and App Inventor app to display the data on the phone.

Now where I need help is how do I send this data over Bluetooth to display it on the phone?

A code example on how to send bluetooth data is greatly appreciated.

The code to send data over bluetooth can be exactly the same as sending it to the serial monitor


As far as Arduino is concerned, Bluetooth is just another serial device. Arduino talks to the serial port, Bluetooth sends data by wireless.