Problem having DHT22 data reading on LCD1602

I am a just learning Arduino.
The DHT22 sends information to the serial monitor which I am able to read in real time.
The LCD1602 displays "Temp: 0.00 C" and "Hum: 0.00%".
I can't get the LCD1602 to read the DHT22 variables.
I have reviewed a bunch of code from tutorials on the web. These projects are working, but when I copy the information over, I get error messages. I have noticed that to get some of the codes to work, I have had to modify my original code.

The below code worked for me except for when I tried having the DHT22 data read on the LCD1602.

//Libraries
#include <DHT.h> // sensor library using lib from Temperature and Humidity - DHT22 and Arduino - Ardumotive Arduino Greek Playground
#include <LiquidCrystal_I2C.h> // LCD library using from How to use an I2C LCD 16x2 with Arduino - Ardumotive Arduino Greek Playground for the i2c LCD library
#include <Wire.h>
#include <Adafruit_Sensor.h>

#include <I2CIO.h> // I2CIO library needed by LiquidCrystal_I2C
#include <LCD.h>

//Constants
#define DHTPIN 2 // DHT 22 (AM2302) - pin used for DHT22
#define DHTTYPE DHT22 // DHT 22
LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 after finding it from serial monitor (see comment above) for a 16 chars and 2 line display

DHT dht = DHT(DHTPIN, DHTTYPE); //// Initialize DHT sensor for normal 16mhz Arduino

//Variables

float hum; //Stores humidity value
float temp; //Stores temperature value
void setup()
{
Serial.begin(9600);
dht.begin();
Wire.begin();
lcd.init(); // initialize the lcd
// Print a message to the LCD
lcd.begin(16, 2);
lcd.backlight();
lcd.setBacklight(HIGH);

}

void loop() {

// Read the humidity in %:
float h = dht.readHumidity();
// Read the temperature as Celsius:
float t = dht.readTemperature();
// Read the temperature as Fahrenheit:
float f = dht.readTemperature(true);
// Check if any reads failed and exit early (to try again):
if (isnan(h) || isnan(t) || isnan(f)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// Compute heat index in Fahrenheit (default):
float hif = dht.computeHeatIndex(f, h);
// Compute heat index in Celsius:
float hic = dht.computeHeatIndex(t, h, false);
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" % ");
Serial.print(" Temperature: ");
Serial.print(t);
Serial.print(" \xC2\xB0");
Serial.print("C | ");
Serial.print(f);
Serial.print(" \xC2\xB0");
Serial.print("F ");
Serial.print(" Heat index: ");
Serial.print(hic);
Serial.print(" \xC2\xB0");
Serial.print("C | ");
Serial.print(hif);
Serial.print(" \xC2\xB0");
Serial.println("F");

delay(5000);

lcd.clear();
lcd.setCursor(0, 0);
lcd.print("Temp: ");
lcd.print(temp);
lcd.print(" ");
lcd.print((char)223);
lcd.print("C");
lcd.setCursor(0, 1);
lcd.print("Hum: ");
lcd.print(hum);
lcd.print(" %");

delay(2000); //Delay 2 sec.

}

You are printing temp and hum to the LCD but you never give them values. Try using t and h instead.