Help me how to combine the skectch about with LCD i2c and control led and dimmer

// [SOLVED] Blynk - WIFI Humidity level control with set point and hysteresis, DHT22 and relay on/off

#define BLYNK_PRINT Serial
#include <ESP8266_Lib.h>
#include <BlynkSimpleShieldEsp8266.h>
#include <DHT.h>

char auth[] = "705b79ecba7a44388f3f44401e9c82c9";
char ssid[] = "kangmashadi";
char pass[] = "polytron";

#include <SoftwareSerial.h>
SoftwareSerial EspSerial(2, 3); // RX, TX

#define ESP8266_BAUD 9600

ESP8266 wifi(&EspSerial);
#define DHTPIN 5          // What digital pin we're connected to
#include <SimpleTimer.h>
#include <WidgetLED.h>
// Uncomment whatever type you're using!
#define DHTTYPE DHT11     // DHT 11
const int relay1 =  10;
const int relay2 =  9;
int humLowTrigger;
int tempHighTrigger;

void updateHum(int param);
void updateTemp(int param);
BlynkTimer timer;


void Readdata()
  float h = dht.readHumidity();
  float t = dht.readTemperature();
  Blynk.virtualWrite(V5, h);
  Blynk.virtualWrite(V6, t);
  Blynk.virtualWrite(V25, humLowTrigger);
  Blynk.virtualWrite(V24, tempHighTrigger);

  if(h < humLowTrigger) {
      digitalWrite(relay1, LOW); 
      Blynk.virtualWrite(V26, 0);
  } else {
      digitalWrite(relay1, HIGH);
      Blynk.virtualWrite(V26, 255);
  if(t < tempHighTrigger) {
      digitalWrite(relay2, HIGH); 
      Blynk.virtualWrite(V27, 255);
  } else {
      digitalWrite(relay2, LOW);
      Blynk.virtualWrite(V27, 0);
void updateHum(int param) {
humLowTrigger = param;

void updateTemp(int param){
tempHighTrigger = param;
void setup()

  Blynk.begin(auth, wifi, ssid, pass);
  timer.setInterval(10000, Readdata);
  pinMode(relay1, OUTPUT);
  digitalWrite(relay1, LOW);
  pinMode(relay2, OUTPUT);
  digitalWrite(relay2, HIGH);
  int humLowTrigger = 65;
  int TempHighTrigger = 20;
void loop()

please help me how to combine the skectch above with LCD i2c and control led and dimmer…??

I have moved your “request” to your own topic… Please DO NOT keep tagging your help requests onto other’s topics.

Thank you.

As for your requests… we will try to assist you in understanding how Blynk works and such, but we do not do your “combining” or coding for you. If you do not know how to do some basic Arduino programming, then please Google around for some teaching sites, as well as start reading and studying the basics at: