Trying to merge 2 sketches

I am trying to replace a block of code that displays text with a bitmap. I am using the U8glib library.
what I am trying to do is have the bitmap displayed for about 5 sec. then clear and display temperature from a dht11. I have marked in the file "project_12" where I need the bitmap to go and all the code to display it. under the heading "// the rest of the sketch to display the bitmap"

the sketches run well separate. Here I put them together to help understand.

#include "U8glib.h"
#include "DHT.h"
#define DHTPIN 2 
#define DHTTYPE DHT11 
#define mando_width 46
#define mando_height 64

DHT dht(DHTPIN, DHTTYPE); 
U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NO_ACK);  // Display which does not send ACK

static unsigned char mando_bits[] U8G_PROGMEM = {
   
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00,
   0x00, 0x00, 0xfb, 0x1f, 0x00, 0x00, 0x00, 0x80, 0xfb, 0x1f, 0x00, 0x00,
   0x00, 0xc0, 0xf9, 0x1f, 0x00, 0x00, 0x00, 0xc0, 0xf3, 0x1f, 0x00, 0x00,
   0x00, 0xc0, 0xf7, 0x0f, 0x00, 0x00, 0x00, 0x80, 0xf7, 0x2f, 0x00, 0x00,
   0x00, 0x00, 0xff, 0x27, 0x00, 0x00, 0x00, 0x60, 0xfe, 0x31, 0x00, 0x00,
   0x00, 0x60, 0xfc, 0x30, 0x00, 0x00, 0x00, 0x60, 0x78, 0x70, 0x00, 0x00,
   0x00, 0x30, 0x38, 0x78, 0x00, 0x00, 0x00, 0x70, 0x38, 0x3c, 0x00, 0x00,
   0x00, 0xf0, 0x38, 0x3e, 0x00, 0x00, 0x00, 0xe0, 0xb9, 0x9f, 0x01, 0x00,
   0x00, 0xe0, 0xb3, 0xcf, 0x03, 0x00, 0x00, 0xe0, 0xbf, 0xcf, 0x03, 0x00,
   0x00, 0xd8, 0xff, 0xef, 0x07, 0x00, 0x00, 0x9e, 0xff, 0xe7, 0x0f, 0x00,
   0x00, 0x7f, 0xfe, 0xe3, 0x1f, 0x00, 0x00, 0xff, 0xfe, 0xc3, 0x1f, 0x00,
   0x80, 0xff, 0xfe, 0x83, 0x3f, 0x00, 0xc0, 0x3f, 0xfe, 0x03, 0x3f, 0x00,
   0xc0, 0x1f, 0x7e, 0x03, 0x7e, 0x00, 0xc0, 0x0f, 0x64, 0x03, 0x7e, 0x00,
   0xe0, 0x07, 0x24, 0x03, 0x7c, 0x00, 0xe0, 0x07, 0x2c, 0x01, 0xf8, 0x00,
   0xe0, 0x03, 0x2c, 0x01, 0xf8, 0x00, 0xf0, 0x01, 0xac, 0x01, 0xf0, 0x00,
   0xf0, 0x00, 0xfc, 0x01, 0xf0, 0x00, 0xf0, 0x00, 0x9c, 0x01, 0xf0, 0x00,
   0xf0, 0x00, 0x9c, 0x01, 0xf0, 0x00, 0xf0, 0x00, 0xdc, 0x01, 0xf0, 0x00,
   0xf0, 0x00, 0x9c, 0x01, 0x78, 0x00, 0xe0, 0x00, 0x90, 0x01, 0x7c, 0x00,
   0xe0, 0x01, 0xa4, 0x82, 0x3f, 0x00, 0xc0, 0x03, 0xac, 0x02, 0x07, 0x00,
   0x80, 0x7f, 0xac, 0x02, 0x00, 0x00, 0x00, 0x3f, 0xac, 0x02, 0x00, 0x00,
   0x00, 0x00, 0xac, 0x06, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x06, 0x00, 0x00,
   0x00, 0x00, 0xa8, 0x06, 0x00, 0x00, 0x00, 0x00, 0xb8, 0x02, 0x00, 0x00,
   0x00, 0x00, 0xb8, 0x02, 0x00, 0x00, 0x00, 0x00, 0x90, 0x02, 0x00, 0x00,
   0x00, 0x00, 0xb0, 0x02, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x04, 0x00, 0x00,
   0x00, 0x00, 0xb0, 0x02, 0x00, 0x00, 0x00, 0x00, 0xb0, 0x02, 0x00, 0x00,
   0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0x00, 0x00, 0x90, 0x01, 0x00, 0x00,
   0x00, 0x00, 0x90, 0x01, 0x00, 0x00, 0x00, 0x00, 0xc0, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
   0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };

   // the rest of the sketch to display the bitmap
   
   //void draw(void) {
  // graphic commands to redraw the complete screen should be placed here 
  //u8g.drawXBMP( 35, 0, mando_width, mando_height, mando_bits); 
  
//}

//void setup(void) {
//}

//void loop(void) {
  // picture loop
 // u8g.firstPage();  
 // do {
 //   draw();
 // } while( u8g.nextPage() );
  
  // rebuild the picture after some delay
  //delay(1000);
//}


   
void setup() {
  dht.begin(); 
  u8g.firstPage();  
  do {
    
    // bitmap replaces this display
    
   u8g.setFont(u8g_font_helvB10); 
   u8g.drawStr(15, 25, "Display Test !");
   u8g.drawStr(15, 45, "Sensor Test !");
  } while( u8g.nextPage() );
  delay(5000);  
}
void loop() {
  float hum = dht.readHumidity(); 
  float temp = dht.readTemperature(true); 
  float fah = dht.readTemperature(true);
  if (isnan(hum) || isnan(temp) || isnan(fah)) {
    Serial.println("Failed to read from DHT sensor!");
    return;
  }
  float heat_index = dht.computeHeatIndex(fah, hum);
  float heat_indexC = dht.convertFtoC(heat_index);    //Calculating the heat index in Celsius
  
  u8g.firstPage();  
  do {
    u8g.setFont(u8g_font_helvR12);  
    u8g.drawStr(0, 15, "Temp:");  
    u8g.setPrintPos(75, 15);
    u8g.print(temp, 0);
    u8g.print((char)176);
    u8g.print(" F");
    
    u8g.drawStr(0, 35, "Humi:");
    u8g.setPrintPos(75, 35);
    u8g.print(hum, 0);
    u8g.print("  %");
    
    u8g.drawStr(0, 55, "Hi:");
    u8g.setPrintPos(75, 55);
    u8g.print(heat_index, 0);
    u8g.print((char)176);
    u8g.print(" F");
  } while( u8g.nextPage() );
  delay(5000);
}

stilgarhammer:
the sketches run well separate.

What happens when they're combined? Any errors?

http://www.thebox.myzen.co.uk/Tutorial/Merging_Code.html

many errors. but I solved the problem.