Help with merge esp web server with sensor read data.

Guys, I really need your help to combine a web server stored in an esp8266 with Ir receive example, and I am very stuck.

I have the following code:

#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>

ESP8266WebServer server(80);
const char* ssid="SSID";
const char* password="password";
String webSite,javaScript,XML;

int sensorPin = A0;   // select the input pin for ldr
int sensorValue = 0;  // variable to store the value coming from the sensor

and the example of ir dump:

I am very stuck.

Does that mean you have attempted to merge them and failed? If so, post that attempt and describe happens when you run it, and what you wanted to happen. If it does not compile, post the error messages, all of them, in code tags.

Thank you Paul, for replay.

Well, in server code I have:

  sensorValue = analogRead(sensorPin);    
  delay(250);                  
  server.handleClient();

and in ir code I have serial.print

Do I need to make a new function from serial.print and to out it with cl.print?

If I replace serial.print with cl.print I have error that it's not implemented...

Please see reply #2.