im having problem display the output on serial monitor cant figure out why
#define BLYNK_TEMPLATE_ID "TMPLEMJi8XeT"
#define BLYNK_DEVICE_NAME "Quickstart Device"
#define BLYNK_AUTH_TOKEN "q0o0UDBNYuX2ttDvGYgxNerDzeUe91Rg"
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// Replace YOUR_AUTH_TOKEN with your Blynk auth token
char auth[] = "q0o0UDBNYuX2ttDvGYgxNerDzeUe91Rg";
// Replace your_ssid and your_password with your WiFi credentials
char ssid[] = "bb";
char pass[] = "amirizzani12";
// Data wire is connected to D3 on the Wemos D1 Mini
#define ONE_WIRE_BUS D3
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
// Define a Blynk timer
BlynkTimer timer;
// This function will be called every time the timer expires
void sendTemperature()
{
// Request a temperature reading from the DS18B20
sensors.requestTemperatures();
// Get the temperature from the DS18B20
float temperature = sensors.getTempCByIndex(0);
// Send the temperature to Blynk via virtual pin V1
Blynk.virtualWrite(V1, temperature);
}
void setup()
{
// Initialize the serial port
Serial.begin(9600);
// Connect to WiFi
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Connect to Blynk
Blynk.begin(auth, ssid, pass);
// Initialize the DallasTemperature library
sensors.begin();
// Set the timer to send a temperature reading every 60 seconds
timer.setInterval(60000, sendTemperature);
}
void loop()
{
// Run the Blynk timer
timer.run();
}
only dotted line is displayed output on serial monitor