HC-05 Bluetooth module comunicating with arduino and android phone

Hi,i woul like your help for a project that i have to tele-controll with android phone and hc-05 a 220v bulb.Actually i am using a 5v reley,a Photoresistor Sensor Module Light Detection Light for Arduino,android phone,arduino uno.Untill now this is the code i have used,is not complete.i am asking your help for this code because there are cases when i type to my android phone a 1 it dot give me always a 49 to serial monitor(arduino) or to the above condition i have specified that if the value i give is equal to 49 the bulb must stay on 2 seconds and off 8seconds,but it does the reverse,how can i solve this problem
Serial.print(ReadBT);
** if (ReadBT == 49)**
** {**
** Delay = 8000;**
** Serial.println("DDDDDDDDDDDDD");**
** }**
** else**
** {**
** Delay = 2000;**
** Serial.println("CCCCCCCCCCCC");**
** }**

** digitalWrite(Relay, HIGH); // turn on relay**
** delay(10000-Delay); // time OFF**
** digitalWrite(Relay, LOW); // turn off relay**
** delay(Delay); // time ON**
}
This is the code i have created until now
///////////////////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include <SoftwareSerial.h>
int Relay = 7;
int BTtx = 10;
int BTrx = 11;
int ReadBT;
int Delay;
SoftwareSerial bluetooth(BTtx, BTrx); // TX | RX
void setup() {

** // put your setup code here, to run once:**

** Serial.begin(9600); // opens serial port, sets data rate to 9600 bps**
** bluetooth.begin(9600);**
** bluetooth.print("$$$");**
** delay(100);**
** bluetooth.println("U,9600,N");**
** bluetooth.begin(9600);**
** Serial.println("setup complete.");**
** pinMode(Relay, OUTPUT);**
}
void loop() {
** // if theres data from the bluetooth module**
** if (bluetooth.available()) {**
** ReadBT = (int)bluetooth.read();**
** Serial.println("BBBBBBBBBBB");**
** //echo it to the serial monitor**
** //Serial.print("bt module said:");**
** Serial.print(ReadBT);**
** }**

** //if theres data from the serial monitor**
** if (Serial.available()) {**
** ReadBT = (int)Serial.read();**
** Serial.println("AAAAAAAAA");**
** //send it to the bluetooth module**
** bluetooth.print(ReadBT);**
** }**
** Serial.print(ReadBT);**
** if (ReadBT == 49)**
** {**
** Delay = 8000;**
** Serial.println("DDDDDDDDDDDDD");**
** }**
** else**
** {**
** Delay = 2000;**
** Serial.println("CCCCCCCCCCCC");**
** }**

** digitalWrite(Relay, HIGH); // turn on relay**
** delay(10000-Delay); // time OFF**
** digitalWrite(Relay, LOW); // turn off relay**
** delay(Delay); // time ON**
}
2.I have bought this light sensor for my project:http://www.ebay.com/itm/1PC-Photoresistor-Sensor-Module-Light-Detection-Light-for-Arduino/251673864995?_trksid=p2045573.c100033.m2042&_trkparms=aid%3D111001%26algo%3DREC.SEED%26ao%3D1%26asc%3D20131017132637%26meid%3D93d7e24c9d784838bf12ddf7c9ee88f1%26pid%3D100033%26rk%3D1%26rkt%3D4%26mehot%3Dpp%26sd%3D251673864995,can anywone help me with a code how to sens light intensity during day/night(considering even the condition that when it is bad/cloudy time i dont want my llamp to get turned on,i want the bulb to get turned on when the sensor sens the dark(for example 8pm) and to turn off the bulb when it is light(7 pm))

    ReadBT = (int)bluetooth.read();

The SoftwareSerial::read() method returns an int. Why do you feel the need to cast that to an int?

Can you explain how printing AAAAAAAAA instead of A conveys more information?

i am new in programming,a friend helped me with the code,we made a test:before AAAAAAAAAAAAAAAAAA we tried to print what we read from bluetooth.I have stucked in this if you can help me i would be happy.

You may be interested in this RemoteXY Thread - all the hard work done for you

If you want to write your own code you may find serial input basics useful.

...R