#include <LiquidCrystal_I2C.h>
byte dot[8] = {0x0E, 0x0A, 0x0E, 0x00, 0x00, 0x00, 0x00, 0x00};
LiquidCrystal_I2C lcd(0x27, 20, 4);
void setup() {
lcd.init();
lcd.backlight();
lcd.createChar(0, dot); // store dot[] into slot 0
}
void loop() {
float h = 80.5; // Relativity humidity
float c = 27.0; // Celsius
float f = 80.6; // Fahrenheit
lcd.setCursor(0, 0);
lcd.print("Humidity: "); lcd.print(h, 1); lcd.print("%");
lcd.setCursor(0, 2);
lcd.print("Temperature: "); lcd.print(c, 2); lcd.write(0); lcd.print("C");
lcd.setCursor(0, 3);
lcd.print("Temperature: "); lcd.print(f, 1); lcd.write(0); lcd.print("F");
delay(4000);
}