How to Show the Moisture Sensor Data in Serial Port in Arduino Uno to an MIT app?

I want to make an mit app where it will show the data inside the serial port of arduino uno using the moisture sensor and HC05

this is my IDE code

#define sensorPin A0

void setup() {



void loop() {

Serial.print("Analog output: ");




// This function returns the analog data to calling function

int readSensor() {

int sensorValue = analogRead(sensorPin); // Read the analog value from sensor

int outputValue = map(sensorValue, 0, 1023, 255, 0); // map the 10-bit data to 8-bit data

return outputValue; // Return analog moisture value