Problems programming (brazilean)

I need using this code, and this code is working, but I want send my Temperature readings to serial monitor each second, I do not know much about programming, so I need your help to understand how I can make this, thanks.

the code is:

#include <OneWire.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <DallasTemperature.h>

#define ONE_WIRE_BUS D4

const int relayPin = D1;
const int led = 13;
int sensorValue;

// Configuração do sensor de temperatura
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature DS18B20(&oneWire);

// Colocar o usuário e senha da rede pra ele poder conectar
const char* ssid = "VIVO-CB35";
const char* password = "J608167085";

ESP8266WebServer server(80);
char temperatureString[6];

float getTemperature() {
float temp;

do {
DS18B20.requestTemperatures();
temp = DS18B20.getTempCByIndex(0);
delay(100);
} while (temp == 85.0 || temp == (-127.0));

return temp;
}

void setup(void){
pinMode(relayPin, OUTPUT);

Serial.begin(115200);
WiFi.begin(ssid, password);
Serial.println("");

while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}

Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());

// Toda essa parte abaixo é pra geração da página web
server.on("/", {
float temperature = getTemperature();
dtostrf(temperature, 2, 2, temperatureString);

String title = "Temperature";
String cssClass = "mediumhot";

// Testa pra saber se ta frio ou quente
if (temperature < 20)
cssClass = "cold";
else if (temperature > 20)
cssClass = "hot";

// Parte pra gerar a página de internet
String message = "" + title + "<meta charset="utf-8" /><meta name="viewport" content="width=device-width" /><link href='https://fonts.googleapis.com/css?family=Advent+Pro' rel="stylesheet" type="text/css">\n";
message += "html {height: 100%;}";
message += "div {color: #fff;font-family: 'Advent Pro';font-weight: 400;left: 50%;position: absolute;text-align: center;top: 50%;transform: translateX(-50%) translateY(-50%);}";
message += "h2 {font-size: 90px;font-weight: 400; margin: 0}";
message += "body {height: 100%;}";
message += ".cold {background: linear-gradient(to bottom, #7abcff, #0665e0 );}";
message += ".mediumhot {background: linear-gradient(to bottom, #81ef85,#057003);}";
message += ".hot {background: linear-gradient(to bottom, #fcdb88,#d32106);}";
message += "<body class="" + cssClass + "">

" + title + "

" + temperatureString + " °C

";

server.send(200, "text/html", message);
});

// Inicia o servidor
server.begin();

// Avisa que ele foi iniciado
Serial.println("Temperature web server started!");
}

void loop(void){
server.handleClient();

// Se quiser colocar a temperatura pra ser apresentada na saída serial tem que colocar a leitura no loop.
}

Take a look at the blink without delay example in the IDE examples (File, Examples, Digital). Put the loop() bit of the example code in your loop(). Replace the blinking of the LED with your serial print of the temperature. You will need the global variables (previousMillis and interval) from the example in your sketch, too.

Your do/while loop, explicitly comparing floats to specific values is WRONG. Not using the value if it is less than -125 or greater than OR EQUAL to 85 makes sense. Sticking in a loop if the sensor goes weird does not.

groundFungus:
Take a look at the blink without delay example in the IDE examples (File, Examples, Digital). Put the loop() bit of the example code in your loop(). Replace the blinking of the LED with your serial print of the temperature. You will need the global variables (previousMillis and interval) from the example in your sketch, too.

Could you rewrite my code please? I'm really a beginner and I do not understand what to do