Hi ChrisWard. I'm using pin 10 and pin 11 (to be Rx and Tx) instead of 0 and 1.
I'm using a copy of Arduino UNO Rev3 (the actual name is Elegoo UNO R3) using a ATmega328P, a HC-05 and a Samsung Galaxy A52.
Sorry, I didn't read the request previously
Hi @Noobie,
the HW seems OK.
I would suggest also to remove the voltage adapter and to put two simple resistors (I don't know if the voltage converter has the ground properly connected or if it smoothes the edges of the serial line).
So please follow my hints. Be sure the pins are crossed (take a sight to the drawing) and initialize the library.
Before the setup instantiate the pins assignment
SoftwareSerial miBT(10, 11);
And in the setup the baudrate
void setup()
{
...
miBT.begin(38400);
...
...
}
...Just noticed you are using a Delay() in the Sketch Loop instead of elapsed time. 
I'll let you know what will happen following your hints, thank you
Yeah, the code i wrote here is just a fast way to see if I'm connecting everything in right way, hardware side. I'll use the elapsed time method like you suggested before 
Thank you so much to keep trying to resolve this topic. I'll let you know where this is going on

The app still doesn't work. Im getting enough about this AI2.
Firs: the AI2 code. The location can't be enabled in settings, so I just get an error using the "when Screen1.ErrorOccurred" block all the way down.
Before picking anything from the list of devices found I let the Clock_TimerConnect to run to actually find all devices. Is it right? I don't know because I don't understand anything about AI2.
if the bluetooth is connected the clock to get the data will run. How do I set the clock to run after picking the device I want? If I am right this clock will run regardless if im connected to the hc05 or not. But I dont know how do i change it.
What do I need to change here? The Connect address part?


when the clock for data run, if the bluetooth is connected i check if there are bytes >0 to receive. Here is the problem: Using a "else" statement I know that there is an error in the If block for bytes>0 because I get the error "Error in call BT>0".
Second: The arduino code. I cant get rid of this error (probably because im dumb)
Note that the serial.print is used just see if the sensors are working
This code is working:

If you know the exact way please write it down. I'm scarily running low on time, if I cant get it right I'll probably ditch this project.
Thanks for all the replies.
You are using "If Serial Connected" before the Serial functions - it should only be used for the miBT functions.
Can we assume you have the Bluetooth Module wired correctly?
Does Serial Print show the Sensors are working?
Do not convert the values to decimals for temperature and humidity, see my post #22
When you say 'this code is working" -is it? No issues?
I can feel your stress Noobie - but you bring it on to yourself! You don't need to know much about programming but you do need to think with a clear head. Look at the name of that timer: Clock_Timer_Connect. It's for the Bluetooth Connection.
Now think - when are you going to be able to make a connection - before you have picked a device to connect or after you have picked it?
Hi Noobie
Let's try this (do not modify the content of either file):
BT_Receive_3_vals.aia (7.8 KB)
Read_DHT11.txt (1.7 KB) (Rename this ext from .txt to .ino)
- Compile the attached Sketch, upload to Arduino UNO
- Build the attached Project as an APK and install on your Phone
- Check that:
a) Arduino is ON, HC-05 is on pins 10, 11; DHT11 is on pin 2;
b) Phone Bluetooth is on, Phone Location is on. - Run the App - what happens? If an error is reported, screenshot it and upload here.
Hi Chris, that is a magnificent app, I couldn't do it to be honest. So...
Data not showing up. That's it. I turned on Location and the Bluetooth before everything else. I built the project, uploaded it, it scans, it connects, it doesn't show data. The serial monitor on my pc works extra fine.
In these days I asked some friends who work with apps, but they didn't give any answer.
I'm wondering if it is something hardware side and not software side
What should I do? I really don't know what is the actual problem.
EDIT: This is what I see:
PS: I'll study this app so well done I'll burn my eyes.
...maybe that's a bit extreme ![]()
So:
- The expected values do show-up on the Serial Monitor.
- The App Scans, lists your Arduino and connects, but data never arrives.
All correct. Any ideas on why this is happening?
No, but we can first find out if anything at all is received by the App by temporarily dumping the DataRecieved into the Label_Msg. Change this block by adding the code outlined:
A hardware question for you - how is your UNO being powered? How many milliAmps is it getting?
It is powered by the USB port on my pc, I can't tell how much is it. sorry
EDIT: nothing shows up... it says connected, but no data ![]()
OK. This may not be 'it' but it is worth trying.
It's possible that there isn't enough power for the UNO. I found this with mine when powered from a PC USB. In fact, on any PC, not all USB ports have enough power to charge your fitness watch for example.
If you don't have a multi-meter to check, do you have an AC to DC Power Adaptor? 9v to 12V max DC output, at least 300mA to 1A max current output. It could have a 2.1mm diameter plug which is centre pin positive, or USB. Another alternative would be a battery pack.
can't I use a powerbank 5V 1A DC? I don't have such power adaptor, all power adaptor I have are 5V 1A DC.
what about this way? What should I do? I can always give a try
You can try your powerbank. The Amperage is OK but the voltage is low. Probably outperforms your PC USB though. ![]()
If you have a battery pack that can output between 9v & 12v with 300mA to 1A, that would be better.
It turns on... but no data.
How should I connect the battery pack to arduino?







