Need help with HC-05

Hi to everyone, I am a noob at Arduinos, and I bought a HC-05 recently. The bluetooth module works fine, but when I upload the code to my arduino, and try to connect the module to my phone with bluetooth, I can't see the module's name. It worked once, but after that, my phone couldn't find the module. Can somebody help me with the code or something, please. Thanks in advance

nk123486756: The bluetooth module works fine, It worked once, but after that, my phone couldn't find the module.

Clearly, either

a phone problem, probably caused by user incompetence, and no amount of Arduino code will fix that, or

the module isn't working, possibly because a power wire is disconnected, and the reason why you mentioned nothing about the LED state is because there are no LEDs to be seen, or

after Bluetooth worked, you disconnected it and then reconnected incorrectly.

Probably no damage done.

Yeah, I tried some code, and different bluetooth apps, and everything is wired correctly, but still, no sign of it...

Sorry, I should have mentioned that no amount of app-changing is likely to save you either. I notice the deafening silence in the matter of Bluetooth LEDs.

You might find the following background notes useful.