Bluetooth controlled Door using arduino and servo.

Hey recently I made my Bluetooth controlled door lock which I think is very impressive as this enabled me to unlock my door from my Android phone.
I felt the need of this when I as relaxing in the bedroom in the evenings of a very cold day. And Then my mom asked me to open the door. And the whole CHILL mode came to an end.
So I decided to make a Bluetooth controlled door lock.
So The Question Is HOW I MADE THIS?
PARTS I USED
1. Servo
2. Arduino
3. Bluetooth module
4. JUMPER Wires
5. Cable Ties
6. Android Phone
7. Glue gun
8. Power bank
Connections:

Then fit it to the door which you want to be controlled.
The code:
#include
Servo myservo;
int pos = 0;
int state; int flag=0;
void setup()
{
myservo.attach(8);
Serial.begin(9600);
myservo.write(60);
delay(1000); }
void loop()
{
if(Serial.available() > 0)
{
state = Serial.read();
flag=0;
} // if the state is ‘0’ the DC motor will turn off
if (state == ‘0’)
{
myservo.write(8);
delay(1000);
Serial.println(“Door Locked”);
}
else if (state == ‘1’)
{
myservo.write(150);
delay(1000);
Serial.println(“Door UnLocked”);
}
}

REMOVE THE TX AND RX PINS.
Then upload the code.
Download the app Bluetooth terminal and install it.
Connect it to your module.
Then send the string 0.
The door will unlock.
Then send the string 1.
The door will lock.
ENJOY………….

Image for reference layout by FrenchToast Philip