# Nothing showing up on the Serial monitor

**URL:** <https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708>\
**Category:** Help\
**Created:** [December 26, 2017, 9:26pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708 "2017-12-26T21:26:08Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 6, 2018, 9:05pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/21 "2018-01-06T21:05:05Z")

</div>

Hello Mr. Cannaday,

Our next competition is coming up in 2 weeks! We installed the new board you sent and we are receiving an error;

Arduino: 1.8.5 (Windows 7), Board: “Arduino Yún”

C:\losant\losant-kit-moisture-master\losant-kit-moisture\losant-kit-moisture.ino:12:25: fatal error: ESP8266WiFi.h: No such file or directory

#include \<ESP8266WiFi.h\>

```
                     ^

```

compilation terminated.

exit status 1  
Error compiling for board Arduino Yún.

This report would have more information with  
"Show verbose output during compilation"  
option enabled in File -\> Preferences.

We were wondering if we could just come to your office and work together with you or some of your other co-workers to build the sensor since we have such little time.

Thanks,  
Brick Girls  
Anya Mehta and Arushi Gupta  
Coach: Bhavna Mehta

---

<div class="post-metadata">

**Author:** ![Brandon\_Cannaday](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/brandon_cannaday/32/14_2.png) [@Brandon\_Cannaday](https://forums.losant.com/u/Brandon_Cannaday)\
**Post date:** [January 6, 2018, 9:35pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/22 "2018-01-06T21:35:20Z")

</div>

Looks like you sent the same message twice. I replied above. Please check the board that’s configured in the Arduino IDE. It should be set to “Generic ESP8266 Module”.

---

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 7, 2018, 4:24pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/23 "2018-01-07T16:24:26Z")

</div>

We still see the same thing as with the previous board:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/ce56b12006d31a04c2a8494f71fb6012011ea185.png)

---

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 7, 2018, 4:35pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/24 "2018-01-07T16:35:14Z")

</div>

Hi Remy,

Can you paste the snapshot of your basic Hello code?

Thanks,  
Bhavna

---

<div class="post-metadata">

**Author:** ![Remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Remy](https://forums.losant.com/u/Remy)\
**Post date:** [January 7, 2018, 5:46pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/25 "2018-01-07T17:46:40Z")

</div>

Hi Bhavna\_Mehta

I tested the baords with two configurations (the two pictures below) with Hello sketch.  
-The first configuration, I managed to display “Hello” word but it remains a problem related to the configuration of the wifi (WIFI\_SSID = “mini @”) of my old applications.  
-the second configuartion that uses GenericESP8266module does not work

Windows 10  
Arduino 1.8.0  
ESP8266 2.4.0

Hello code:  
void setup() {  
Serial.begin(115200);  
while(!Serial) { delay(100); }  
}

void loop() {  
Serial.println(“Hello!”);  
delay(1000);  
}

 ![Mehta 1](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/c8b9f72ceb403d28b617ae713d005d86a3bfec1d.png)

 ![Mehta 2](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/4995c588f32298a80c31148b3231453542d86a90.png)

---

<div class="post-metadata">

**Author:** ![Remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Remy](https://forums.losant.com/u/Remy)\
**Post date:** [January 7, 2018, 5:51pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/26 "2018-01-07T17:51:41Z")

</div>

This one is related to the first configuration (see above)

 ![Mehta 3](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/6d7dcc609187ac10e1b2114d3ef34f22119f97d1.PNG)

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [January 8, 2018, 5:07pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/27 "2018-01-08T17:07:24Z")

</div>

@Remy

Hi, just as a test. Can you try using DOUT as the flash mode instead of QUO?

As I was testing out other devices, this seem to resolve this issue for me.

---

<div class="post-metadata">

**Author:** ![Remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Remy](https://forums.losant.com/u/Remy)\
**Post date:** [January 8, 2018, 5:52pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/28 "2018-01-08T17:52:55Z")

</div>

@anaptfox

Yes you are right.  
thank you

 ![losant5](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/0bf11809182da051e600688d592cdcfcc68cae8f.png)

---

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 8, 2018, 6:39pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/29 "2018-01-08T18:39:04Z")

</div>

Thank you Remy and Taron. We will try that later today too.

---

<div class="post-metadata">

**Author:** ![Remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Remy](https://forums.losant.com/u/Remy)\
**Post date:** [January 8, 2018, 7:24pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/30 "2018-01-08T19:24:49Z")

</div>

@anaptfox @Bhavna_Mehta

I used this configuration for the door opening detection application ( [https://docs.losant.com/getting-started/losant-iot-dev-kits/door-sensor-kit/](https://docs.losant.com/getting-started/losant-iot-dev-kits/door-sensor-kit/) ) but it does not work properly !!!

 ![losant6](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/403d0998a06f4fb10564e1c1d863091875088273.png)

---

<div class="post-metadata">

**Author:** ![Remy](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@Remy](https://forums.losant.com/u/Remy)\
**Post date:** [January 10, 2018, 8:39am UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/31 "2018-01-10T08:39:51Z")

</div>

Yes 🤣🕶😀, everything works correctly with the configuration shown in the figure below

 ![Goooooood](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/402503fe312f316020cc05d633cefbf6f16353e7.png)

---

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 13, 2018, 8:32pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/32 "2018-01-13T20:32:00Z")

</div>

Hi, Thanks to Taron Foxworth’s help we were able to get the moisture sensor to work. We would like to demo the sensor connected to a hotspot while it shows the dashboard on a phone. We changed the wifi settings to the hotspot but somehow the sensor still needs to be connected to a computer via USB to transmit values to LOSANT.

Also, we are trying to flash the code to a different MCU and are getting the following error:  
Arduino: 1.8.5 (Windows 7), Board: “Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None”

Archiving built core (caching) in: C:\Users\mehtb1\AppData\Local\Temp\arduino\_cache\_720532\core\core\_esp8266\_esp8266\_generic\_CpuFrequency\_80,FlashFreq\_40,FlashMode\_dio,UploadSpeed\_115200,FlashSize\_512K64,ResetMethod\_ck,Debug\_Disabled,DebugLevel\_None\_\_\_\_\_49786d67e89a1b4c62c7f2194357454d.a  
Sketch uses 292361 bytes (67%) of program storage space. Maximum is 434160 bytes.  
Global variables use 39576 bytes (48%) of dynamic memory, leaving 42344 bytes for local variables. Maximum is 81920 bytes.  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
error: failed reading byte  
warning: espcomm\_send\_command: cant receive slip payload data  
warning: espcomm\_sync failed  
error: espcomm\_open failed  
error: espcomm\_upload\_mem failed  
error: espcomm\_upload\_mem failed

This report would have more information with  
"Show verbose output during compilation"  
option enabled in File -\> Preferences.

Thanks,  
Bhavna

---

<div class="post-metadata">

**Author:** ![Bhavna\_Mehta](https://avatars.discourse-cdn.com/v4/letter/b/58956e/32.png) [@Bhavna\_Mehta](https://forums.losant.com/u/Bhavna_Mehta)\
**Post date:** [January 14, 2018, 3:16pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/33 "2018-01-14T15:16:01Z")

</div>

I think I have my answer to the first part of the question - does the USB cable power the sensor? We will try a portable USB power supply.

Thanks,  
Bhavna

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [January 14, 2018, 3:31pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/34 "2018-01-14T15:31:22Z")

</div>

@Bhavna_Mehta

Yes. The USB powers the NodeMCU. So, it doesn’t need to be powered by a laptop. I can also be powered by a power bank or a wall usb plug.

---

<div class="post-metadata">

**Author:** ![Andie\_Dini](https://avatars.discourse-cdn.com/v4/letter/a/85f322/32.png) [@Andie\_Dini](https://forums.losant.com/u/Andie_Dini)\
**Post date:** [June 3, 2019, 5:53pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/35 "2019-06-03T17:53:47Z")

</div>

Hi…i think those are printed by the ESP as part of the boot process. It should then immediately start printing other stuff. I’ll provide a simpler firmware shortly just to test that the boards are working at all.

[contract manufacturing pcb assembly](https://www.7pcb.com/about-bittele.php)

---

<div class="post-metadata">

**Author:** ![SathvikSetty\_s](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@SathvikSetty\_s](https://forums.losant.com/u/SathvikSetty_s)\
**Post date:** [June 24, 2019, 5:43am UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/36 "2019-06-24T05:43:03Z")

</div>

Hey, same issue here. Nothing showing up in the serial monitor. I’m using ESP-12E as standalone and using Arduino IDE. The first time it was able to connect to WiFi but, later serial monitor is blank. Nevertheless, the Blink code is working. I’ve also tried the “hello code” mentioned in the discussion and it just outputs ‘?’ for it.

---

<div class="post-metadata">

**Author:** ![SathvikSetty\_s](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@SathvikSetty\_s](https://forums.losant.com/u/SathvikSetty_s)\
**Post date:** [June 24, 2019, 6:05am UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/37 "2019-06-24T06:05:20Z")

</div>

Phew. It’s working when I changed the flash mode to DOUT. Thanks! Can I know what exactly are these configurations? I mean the detail explanations?

Regards,  
Sathvik Setty

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [June 24, 2019, 3:39pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/38 "2019-06-24T15:39:37Z")

</div>

Hi @SathvikSetty_s,

The LosantDevice documentation can be found [here](https://github.com/Losant/losant-mqtt-arduino#api-documentation), and Losant variables (found at the top of the file) can be found [here](https://docs.losant.com/getting-started/losant-iot-dev-kits/door-sensor-kit/#5-flash-the-firmware).

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Joseph\_Gerard](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Joseph\_Gerard](https://forums.losant.com/u/Joseph_Gerard)\
**Post date:** [September 20, 2019, 9:39pm UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/39 "2019-09-20T21:39:51Z")

</div>

I have the same issue with a nodemcu sketch.

I was using Ubuntu with Arduino v10 and doing some program tweaking and the serial monitor quit displaying anything.  
I loaded my same sketch onto my Mac Book PRO and everything loads and works as it should.

I have tried different sketches that use WIFI and also your simple Serial.print test.  
And still nothing on the Serial Monitor on the Ubuntu computer.  
The sketch looks like it is loading onto the nodemcu via the led is flashing while the sketch is loading.

Is there something that I should check with the USB ports on the Ubuntu computer?

Thanks, Joe

---

<div class="post-metadata">

**Author:** ![Joseph\_Gerard](https://avatars.discourse-cdn.com/v4/letter/j/e47c2d/32.png) [@Joseph\_Gerard](https://forums.losant.com/u/Joseph_Gerard)\
**Post date:** [September 21, 2019, 3:26am UTC](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708/40 "2019-09-21T03:26:02Z")

</div>

Well i got it to work again.  
I powered down the Linux PC for an hour and then restarted it.

This part of my sketch is where I was tweaking:

void SouthBed(){  
if (timerRunning1 == 0 && digitalRead(sBed) == LOW){  
startTime1 = millis();  
timerRunning1 = 1;  
}  
if (timerRunning1 == 1 && digitalRead (sBed) == HIGH){  
endTime1 = millis();  
timerRunning1 = 0;  
TimeS = ((endTime1 - startTime1) /60000);  
Serial.print("sBed cycle time in minuets: ");  
Serial.println(TimeS);  
SBed = (TimeS = ((endTime1 - startTime1) /60000));  
Serial.println (SBed);  
Blynk.virtualWrite(2, SBed);  
}  
}

I wanted to see how long startTime1 = millis(); was running before it got reset so I put in Serial.println(startTime1 = millis()); right before timerRunning1 = 1 code line and when I loaded the sketch that is when the serial monitor quit.

What I did notice was that after the sketch finished loading it didn’t perform the “Hard resetting via RTS pin” at the end of the uploading. Kinda frustrating and kinda weird.

I am new at C++ programing, I used to program in Basic back in the day and before I retired I programed AllenBradly PLC’s

These Arduino devices are a lot of fun.  
Joe

[Previous page](https://forums.losant.com/t/nothing-showing-up-on-the-serial-monitor/708.md?page=1)
