(also tried the -1 instead of bytesavailabletorecieve, but won't work either)
I used a voltage divider with 1k ohms from TX of arduino to a 2k ohms which is connected to ground and in de middle i connected my RX pin of my HC05 to give the bluetooth module the 3.3V signal.
I don't understand why it doesn't work correctly my arduino just prints for example 70|10.00|4101.39
Oh, there might still be a problem with uart speed. You have 38400 set in the program. By default, BT modules are set to 9600. If you have not changed the speed of the BT module, set it to 9600 in the program.
i'm trying to use in another sketch the at command at a baudrate of 38400 and that won't even work if you mean that, currently investigating why that is
Hc05 to enter the at mode you must connect to the power supply while holding down the button on the board. Terminal speed set to 9600 and marked with CR and LF.