Please I'm having and initialization error with my LCD. All that I'm trying to do it transmit my DHT sensor data to a website will displaying it also on a 16 BY 2 LCD. the error is at the void setup() function. When i upload the code the error message below pops up. please can anyone help me? AFTER UPLOAD THE CODE THIS IS HIGHLIGHTED," lcd.init();" the error message that come is "WITH THIS CONTEXT"
Arduino: 1.8.13 Hourly Build 2020/02/19 03:33 (Windows 10), Board: "Generic ESP8266 Module, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"
In file included from C:\Users\USER.000\Documents\Arduino\esp\esp.ino:21:0:
C:\Users\USER.000\Documents\Arduino\libraries\NewLiquidCrystal_lib/LiquidCrystal_I2C.h: In function 'void setup()':
C:\Users\USER.000\Documents\Arduino\libraries\NewLiquidCrystal_lib/LiquidCrystal_I2C.h:185:9: error: 'int LiquidCrystal_I2C::init()' is private
int init();
^
esp:45:12: error: within this context
lcd.init(); // initializing the LCD
^
Multiple libraries were found for "ESP8266WebServer.h"
Used: C:\Users\USER.000\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.7.1\libraries\ESP8266WebServer
Not used: C:\Users\USER.000\Documents\Arduino\libraries\ESPWebServer-master
Multiple libraries were found for "LiquidCrystal_I2C.h"
Used: C:\Users\USER.000\Documents\Arduino\libraries\NewLiquidCrystal_lib
Not used: C:\Users\USER.000\Documents\Arduino\libraries\LiquidCrystal_I2C-1.1.2
Not used: C:\Users\USER.000\Documents\Arduino\libraries\NewliquidCrystal
exit status 1
within this context
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
FROM THE BEGINING OF THE CODE TO WHERE THE ERROR IS AS SHOWN BELOW:
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DHT.h> //This library you can add under Manage Library
#include <ESP8266mDNS.h>
#include <Wire.h> // This library is already built-in
#include <LiquidCrystal_I2C.h> //Add this library in the Manage Library
LiquidCrystal_I2C lcd(0x27,2,1,0,4,5,6,7,3,POSITIVE);
#define DHTPIN 11 //define as DHTPIN the Pin 11 used to connect the Sensor
#define DHTTYPE DHT11 //define the sensor (DHT11)
DHT dht(DHTPIN, DHTTYPE);//create an instance of DHT
const char* host = "http://prefarmapi.herokuapp.com"; //IP Address Of The ESP. Ex 192.168.0.xxx/api
const char* ssid = "Ku";
const char* password = "alori";
ESP8266WebServer server(80);
float humidity, temp_f; // Values read from sensor
String webString="";
unsigned long previousMillis = 0; // will store last temp was read
const long interval = 2000; // interval at which to read sensor
void handle_root() {
server.send(200, "text/plain", "Welcome, open /temp, /humidity or /api");
delay(100);
}
void setup(void)
{
Serial.begin(115200);
lcd.init(); // initializing the LCD
lcd.backlight();
dht.begin(); // initialize temperature sensor
// Connect to WiFi network
WiFi.begin(ssid, password);
Serial.print("\n\r \n\rWorking to connect");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
I REALLY NEED HELP