Serial monitor stops displaying data

Having trouble with serial monitor stops printing.
Running program on Adafruit ESP8266 Huzzah to read temp from dallas temp and adafruit mcp9808 and displaying results on LCD and serial monitor.
All works fine until I add in the Blynk code, then serial monitor starts displaying data and just stops and prints ÿ.

[23623] Connecting to NETGEAR53
[27123] Connected to WiFi
[27124] IP: 192.168.1.32
[27124]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
/
//_, /////_
/
__/ v0.4.3 on ESP8266

[27196] Connecting to blynk-cloud.com:8442
[27353] Ready (ping: 1ms).
Dallas Temperature
Adafruit_MCP9808
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

are you posting your code too?

//**********  Blynk_ESP8266  **********
//*************************************
#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
//#define BLYNK_DEBUG     
//#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>

char auth[] = "**********************************";

SimpleTimer timer;

//**********  Dallas Temp  **********
//***********************************
// Include the libraries we need
#include <OneWire.h>
#include <DallasTemperature.h>

// Data wire is plugged into port 2 on the Arduino
#define ONE_WIRE_BUS 2

// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature. 
DallasTemperature sensors(&oneWire);

//********** Adafruit MCP9808  **********
//***************************************
#include <Wire.h>
#include "Adafruit_MCP9808.h"

// Create the MCP9808 temperature sensor object
Adafruit_MCP9808 tempsensor = Adafruit_MCP9808();

//**********  LiquidCrystal_I2C  **********
//*****************************************
#include <LiquidCrystal_I2C.h>

// Set the LCD address
LiquidCrystal_I2C lcd(0x3F, 20, 4);



void setup()
{
    // start serial port
  Serial.begin(9600);
  Blynk.begin(auth, "********************", "*******************"); //insert here your SSID and password
  Serial.println("Dallas Temperature");
  Serial.println("Adafruit_MCP9808");

  timer.setInterval(10000L, temp);
  
  // Start up the library
  sensors.begin();
  
  // Make sure the sensor is found, you can also pass in a different i2c
  // address with tempsensor.begin(0x18) for example
  if (!tempsensor.begin()) {
    Serial.println("Couldn't find MCP9808!");
    while (1);
  }

      // initialize the LCD
  lcd.begin();

  // Turn on the blacklight and print a message.
  lcd.backlight();
  lcd.clear();
}

void temp()
{ 
  // call sensors.requestTemperatures() to issue a global temperature 
  // request to all devices on the bus
  Serial.print("Requesting temperatures...");
  sensors.requestTemperatures(); // Send the command to get temperatures
  Serial.println("DONE");
  // After we got the temperatures, we can print them here.
  // We use the function ByIndex, and as an example get the temperature from the first sensor only.
  Serial.print("Temperature for the device 1 (index 0) is: ");
  Serial.println(sensors.getTempFByIndex(0));
  
  lcd.setCursor(0,0); //Start writing at character 0 on line 0 (the first line)  
  lcd.print ("Outside Temp: ");
  lcd.print (sensors.getTempFByIndex(0),0);

  Blynk.virtualWrite(1, sensors.getTempFByIndex(0)); // virtual pin 

  Serial.println("wake up MCP9808.... "); // wake up MSP9808 - power consumption ~200 mikro Ampere
  tempsensor.shutdown_wake(0);   // Don't remove this line! required before reading temp
  // Read and print out the temperature, then convert to *F
  float c = tempsensor.readTempC();
  float f = c * 1.8 + 32;
  Serial.print("Temp: "); Serial.print(c); Serial.print("*C\t"); 
  Serial.print(f); Serial.println("*F");
    delay(250);
    Serial.println("Shutdown MCP9808.... ");
  tempsensor.shutdown_wake(1); // shutdown MSP9808 - power consumption ~0.1 mikro Ampere

  lcd.setCursor(0,1); //Start writing at character 0 on line 1 (the 2nd line)  
  lcd.print (" Inside Temp: ");
  lcd.print (f,0);
  Blynk.virtualWrite(2, f); // virtual pin   
}

void loop()
{
  Blynk.run();
  timer.run();
}

Just tried it with Blynk.run() commented out and it runs and prints to serial monitor.
So it is in the “Blynk” code that stops it from printing.

{ 
  // call sensors.requestTemperatures() to issue a global temperature 
  // request to all devices on the bus
  Serial.print("Requesting temperatures...");
  sensors.requestTemperatures(); // Send the command to get temperatures
  int temp;
   DallasTemp = sensors.getTempFByIndex(0);
  Serial.println("DONE");
  // After we got the temperatures, we can print them here.
  // We use the function ByIndex, and as an example get the temperature from the first sensor only.
  Serial.print("Temperature for the device 1 (index 0) is: ");
  Serial.println(DallasTemp);
  
  lcd.setCursor(0,0); //Start writing at character 0 on line 0 (the first line)  
  lcd.print ("Outside Temp: ");
  lcd.print (DallasTemp);

  Blynk.virtualWrite(1, DallasTemp); // virtual pin 

  Serial.println("wake up MCP9808.... "); // wake up MSP9808 - power consumption ~200 mikro Ampere
  tempsensor.shutdown_wake(0);   // Don't remove this line! required before reading temp
  // Read and print out the temperature, then convert to *F
  float c = tempsensor.readTempC();
  float f = c * 1.8 + 32;
  Serial.print("Temp: "); Serial.print(c); Serial.print("*C\t"); 
  Serial.print(f); Serial.println("*F");
    delay(250);
    Serial.println("Shutdown MCP9808.... ");
  tempsensor.shutdown_wake(1); // shutdown MSP9808 - power consumption ~0.1 mikro Ampere

  lcd.setCursor(0,1); //Start writing at character 0 on line 1 (the 2nd line)  
  lcd.print (" Inside Temp: ");
  lcd.print (f,0);
  Blynk.virtualWrite(2, f); // virtual pin   
}

does that help?

can you show serial prints?

This is with “Blynk.run ();” commented out.

[26920] Connected to WiFi
[26920] IP: 192.168.1.32
[26920]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
/
//_, /////_
/
__/ v0.4.3 on ESP8266

[26993] Connecting to blynk-cloud.com:8442
[27153] Ready (ping: 1ms).
Dallas Temperature
Adafruit_MCP9808
Requesting temperatures…DONE
Temperature for the device 1 (index 0) is: 72.61
wake up MCP9808…
Temp: 23.50C 74.30F
Shutdown MCP9808…
Requesting temperatures…DONE
Temperature for the device 1 (index 0) is: 72.61
wake up MCP9808…
Temp: 23.50C 74.30F
Shutdown MCP9808…
Requesting temperatures…DONE
Temperature for the device 1 (index 0) is: 72.61
wake up MCP9808…
Temp: 23.50C 74.30F
Shutdown MCP9808…

I’ve tried rolling back to Blynk 4.3 to 4.1 and 4.2, no luck.
Also tried rolling back to IDE 1.8.0 to 1.6.13, no luck.

have you tried adding this new variable like i suggested?

DallasTemp = sensors.getTempFByIndex(0);

yes, still didn’t print

try 115200 baud

I figured it out.
I was trying to use the “Bridge” function, but couldn’t get it to work. I was able to send the data from another Esp8266, but was never able to get this one to read it correctly. The other one was still sending information, once I took out the Bridge code this one starting printing correctly.

If you have any ideas about getting the Bridge function to work, that would be great.

All I was wanting to do was send temperature data from another ESP8266 connected to Blynk and print out that data on this one with the LCD connected.

great, cause i was really clutching at straws there… :slight_smile: