NodeMCU with PIR SENSOR & GP2Y1010AU0F

Hello everybody.

(before i start i just want to let you know my english might not be perfect)

I JUST STARTED LEARNING CODING IM NOT GOOD

I’ve started a project with the NodeMCU, a GP2Y1010AU0F(Compact Optical Dust Sensor), a HC-SR501 (PIR Sensor)
It’s been 4 days im trying to figure out how to put the data of those sensor into a webpage(local),
i have done a webpage with the " hello server " it works but i don’t know how to put my code into it

Here is my code :

#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ESP8266mDNS.h>
#define IR_output 5
#define measurePin 0
#define ledPower 6
int measurePin = 0;
int ledPower = 6;

int samplingTime = 280;
int deltaTime = 40;
int sleepTime = 9680;

float voMeasured = 0;
float calcVoltage = 0;
float dustDensity = 0;
void setup() {
pinMode(IR_output,INPUT);
Serial.begin(115200);
}
void loop() {
if(digitalRead(IR_output)==HIGH){
Serial.println(“mouvement detecte”);
}
if(digitalRead(IR_output)==LOW){
Serial.println(“pas de mouvement detecte”);
}
delay(200);
digitalWrite(ledPower,LOW); // power on the LED
delayMicroseconds(samplingTime);

voMeasured = analogRead(measurePin); // read the dust value

delayMicroseconds(deltaTime);
digitalWrite(ledPower,HIGH); // turn the LED off
delayMicroseconds(sleepTime);

calcVoltage = voMeasured * (5.0 / 1024.0);

dustDensity = 0.17 * calcVoltage - 0.1;

Serial.print("Valeur du signal brut (0-1023): “);
Serial.print(voMeasured);

Serial.print(” - Voltage: “);
Serial.print(calcVoltage);

Serial.print(” - Densité de la poussière (mg/m3) : ");
Serial.println(dustDensity); // unit: mg/m3

delay(1000);
}

but i don't know how to put my code into it

You don't want to put your code into it (assuming it is the web page). You want to put some values in the stream of data served up.

There is nothing in that code that makes the NodeMCU act as a server, so there is no place to put the values that you collect.

may you tell me what to put, i've been looking online i can't find how

may you tell me what to put

I could, but I've promised to be civil this month.

What do you want to put where?