HC-05 Keeps on disconnecting

You need to:

  • post your code
  • post a schematic/diagram of your setup.

No one can answer your question without this.