I need help in combining code together

I would very much appreciate it if anyone would like to help me combine all of these codes.

#include <LiquidCrystal.h>
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

int flame_sensor = A3;
int flame_detected;

const int buzzer = 13;
void setup() {
  pinMode(flame_sensor, INPUT);
	pinMode(buzzer, OUTPUT);  
}

void loop() {
  // Flame sensor
  flame_detected = digitalRead(flame_sensor);

  if (flame_detected == 1)

  {

    lcd.println("Flame detected");
    tone(buzzer, 500);
    delay(5000);
  }
  else
  {
    lcd.println("No flame detected");
    tone(buzzer, 500);
  }
  delay(5000);
}

const int buzzer = 13;
int shakesensor = A0;

void setup()
{
	Serial.begin(9600);
	pinMode(buzzer, OUTPUT);  
}
void loop()
{
  // Shake sensor
	shakesensor = analogRead(A0);
	if (shakesensor<1022){
		tone(buzzer, 500);
		Serial.print("shakesensor Value: ");
		Serial.println(shakesensor);
	}
	else{ 
		noTone(buzzer);
		Serial.print("shakesensor Value: ");
		Serial.println(shakesensor);
	}
	delay(100);
}
#include <LiquidCrystal.h>
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

int gassensor = A2;
int ThreshHold = 60;

const int buzzer = 13;
void setup() {
	Serial.begin(9600);
  lcd.begin (16, 2);
  pinMode(gassensor, INPUT);
}

void loop() {
//Gas sensor
  int SensorState = analogRead (gassensor);
  int analogValue = SensorState;
  Serial.println(analogValue);
  if (analogValue > ThreshHold){
    tone(buzzer, 500);
    lcd.clear();
    lcd.print("Gas detected");
    delay(5000);
  }
  else {
    lcd.clear();
    lcd.print("No gas detected");
    delay(5000);
  }
  lcd.clear();
}

#include <LiquidCrystal.h>

int temperaturesensor = A1;
float temp;
float tempc;
float tempf;
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void setup() {
	Serial.begin(9600);
  lcd.begin (16, 2);
}

void loop() {
// Temperature sensor
  temp=analogRead(temperaturesensor);
tempc=(temp*4.88)/10;
tempf=(tempc*1.8)+32;
lcd.setCursor(0,0);
lcd.print("Temp in C = ");
lcd.println(tempc);
lcd.setCursor(0,1);
lcd.print("Temp in F = ");
lcd.println(tempf);
  delay(5000);
}

The big problem for you at the moment is that any delay in one piece of code will affect the other codes.

Anyway here is help in how to do it:-
http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html

but if i do not put the delay in, it only display the last code

No, read the link, then you will know that you only need one five second delay not five seconds for each code, once they are combined.

ok i do read but kinda not understand
let me read carefully again

it said that to eliminate the delay function in the different tutorial

What different tutorial? Have you a link to that, or is it just bad English?

im really sorry if i have triggered u

and yes, I'm bad at English=(

this is what i see
So, having merged the two sketches, in this example, was not quite the right thing to do. What is the solution? Well in this case and a lot of others you need to eliminate the delay() function from the loops. This is because the delay() completely stops the processor from doing anything else, we say it is a blocking call. To eliminate the delay() you want to look at the sketch "Blink without delay" in the File -> Examples -> Digital menu of the Arduino application. But that is for another tutorial.

I do think you should use an online translator, with as full a description as you can write.

Anyway just follow the steps in that link I wrote and leave all the delays in. Then you will see why you do not need them all.

thank you

@knr0 - Have you compiled and run each of your four sketches separately?

Yes

Thank you all for helping me

And do the sketches all work?

Yes it does

What should i name this device

Your first sketch is a flame sensor.
Your second sketch is a shake sensor.
Your third sketch is a gas sensor.
Your fourth sketch is a temperature sensor.

And, if they all worked, do you still have all the components to re-build the project?

Yes i do and i have done it
Even through it look not good but its work