adding bluetooth

I'm new to this stuff working on a project and i cant figure it out, can someone please do me a solid and add bluetooth to my code its the last part of my project and im stressed trying to make it work . i have a arduino uno and an hc-05 just want to be able to hit "on" and have it go through the sequence . i would greatly appreciate it

void setup() {

// initialize the digital pin as an output.
// Pin 13 has an LED connected on most Arduino boards:
pinMode(2, OUTPUT);
pinMode(4, OUTPUT);

}

void loop() {
digitalWrite(2, HIGH); // RED Led on for 5 second Pre Stage
delay(5000);
digitalWrite(2, LOW); // LED turns off for 1/2 second
delay(5);
digitalWrite(2, HIGH); // RED led on 1/2 second
delay(500);
digitalWrite(2, LOW); // LED turns off for 1/2 second
delay(5);
digitalWrite(2, HIGH); // RED Led on for 1/2 second
delay(500);
digitalWrite(2, LOW); // LED turns off for 1/2 second
delay(5);
digitalWrite(2, HIGH); // RED Led on for 1/2 sec
delay(500);
digitalWrite(2, LOW); // LED turns off for 1/2 second
delay(5);
digitalWrite(4, HIGH); // Green Led on for 5 seconds
delay(5000);
digitalWrite(4, LOW); // Green LED turns off for 5 seconds
delay(5000);
}

You have two options.

  1. The simplest is to have a terminal programme on Android send “on”, and Arduino receives it, and acts accordingly.

  2. Another HC-05 auto connects to Bluetooth, which activates a pin on Arduino, thereby triggering the operation.

You might find the following background notes useful.

http://homepages.ihug.com.au/~npyner/Arduino/GUIDE_2BT.pdf
http://homepages.ihug.com.au/~npyner/Arduino/BT_2_WAY.ino

but they don’t specifically address your problem.

Thank you i will look into this i appreciate it