 
 int counter = 0;
 char macAddress[] = "00:00:00:00:00:00";
+
+
+char tempMessage[MAX_MESSAGE_SIZE];
+char floatBuffer[10];
+float currentTemp = 0;
+float currentHumidity = 0;
+int lightValue = 0;
+void provideMetrics() {
+  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_humidity %s\n",
+             dtostrf(currentHumidity, 4, 2, floatBuffer));
+  String ptr = tempMessage;
+  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_temperature %s\n",
+           dtostrf(currentTemp,4, 2, floatBuffer));
+  ptr+= tempMessage;
+  snprintf(tempMessage, MAX_MESSAGE_SIZE, "plant_light %d\n", lightValue);
+  ptr+= tempMessage;
+
+  server.send(200, "text/plain", ptr);
+}
 
 void setup() {
   delay(1000);

};

ESP8266WiFiGenericClass wifi;

#ifdef USE_CERTS
// if certs are used the following must be defined in WirelessConfig.h

          macRaw[3],
          macRaw[4],
          macRaw[5]);

  server.on("/metrics", provideMetrics);
  server.begin();
}

void loop() {
