 
 // 404 not found page
 void handleNotFound() {
+  String header;
   String addy = server.client().remoteIP().toString();
   Serial.println("");
+  String userAgent;
   Serial.println(addy);
+  if (server.hasHeader("User-Agent")) {
+    userAgent = server.header("User-Agent");
+  } else {
+    userAgent = "Pas de userAgent ?";
+  }
+  Serial.println(userAgent);
   String htmlmessage = "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\" class=\"client-nojs\">\n<head>\n";
   htmlmessage += "<meta charset=\"UTF-8\" />\n<title>404 Not found</title>\n"
                  "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n";

#include <WiFi.h>
#include <DNSServer.h>
#include <WebServer.h>
#include <WiFiManager.h>
#include <WiFiMulti.h>
#include <HTTPClient.h>
#include <Preferences.h>
#include <ESPmDNS.h>

Preferences preferences;

// sensors stuff
#include <Wire.h>

          webadd += tempC;
          enweille = 1;
          dernd = tempC;
        } else {
          Serial.println("Erreure du senseur dallas 85 !");
          if (dernd != "0") {
            tempC = dernd;
            webadd += "&field1=";
            webadd += tempC;
            enweille = 1;
            Serial.print(tempC);
            if (usesenseurdht == 1) {
              Serial.print(" - ");
            }
          } else {
            enweille = 0;
          }
        }
      } else {
        Serial.println("Erreure du senseur dallas -127 !");
        if (dernd != "0") {
          tempC = dernd;
          webadd += "&field1=";
          webadd += tempC;
          enweille = 1;
          Serial.print(tempC);
          if (usesenseurdht == 1) {
            Serial.print(" - ");
          }
        } else {
          enweille = 0;
        }
