Transmit received data from temperature sensor to MIT App Inventor 2

I have an Arduino connected to my smartphone via Bluetooth (HC-05), and I want it to receive the data that is appearing on the Serial Monitor, from my LM35. I use an app created on MIT App Inventor. I have another part of code on that file but it's not about this question.

alarme_incendio_temp.ino (865 Bytes)

and I want it to receive the data that is appearing on the Serial Monitor, from my LM35.

YOU make the data appear in the Serial Monitor application, by using Serial.print(), Serial.println(), or Serial.write().

If your bluetooth device is connected to pins 0 and 1, and there is nothing in your code to indicate that it is not, then the device should be broadcasting the exact same data.

If your phone app is not getting the data, that is NOT an Arduino problem.

1. You have an LM35 Temperature Sensor connected with your UNO. Which analog channel have you used?

2. You have the Serial Monitor with your UNO. It is driven by the UART port of UNO. There is only one UART Port in the UNO.

3. You have a HC05 Bluetooth Module. It is a UART driven device. You need to connect it with the UNO using a UART Port. But, there is no more UART Port left in the UNO. Therefore, you have to use a software UART Port (SUART) for the Bluetooth. Do you know how to create a SUART Port using SoftwareSerial.h Libray and the SoftwareSerial mySerial command? If you fine; else, learn it.

4. Open a Bluetooth Terminal in your Smartphone and connect/pair it with the Bluetooth Module of your UNO.

5. Include codes in your sketch to write LM35's data into your HC05 Module via SUART Port.

6. See, the Temperature Reading is in the Bluetooth Terminal Window of your Smartphone.

Have a fun!