New Homepage Forums Social Media Shields junk value appears on serial monitor

This topic contains 2 replies, has 3 voices, and was last updated by avatar reesewilliam 4 years, 4 months ago. This post has been viewed 1268 times

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #9790
    avatarvivek g s

    Hi, my name is vivek i was just trying to connect a Light sensor with E-mail sheeld when the value of sensor reaches certain limit e-mail sheeld should mail but in the serial monitor it is showing some junk values can u please help me out!!

    You must be logged in to view attached files.
    avatarEslam Ali

    Hi again vivek,

    Actually i have read your two posts about this problem and i will answer you here since the two posts are related to the same topic and if you don’t mind i will remove the other one since it has the same topic with the same issue¬†ūüôā . So you are dealing with the Light sensor from 1Sheeld and it gives you junk readings which conflicts with the readings you have from the application on your smartphone and that because you are dealing with the Serial monitor of Arduino to check the data while the Serial path you are working on is already occupied with 1Sheeld¬†so your PC can’t grab data from your Arduino as it’s already¬†communicating with your smartphone. so instead of using the Serial class in Arduino (which we already using it in our library) you can use the Terminal shield in 1Sheeld and track the data if you want to track the data that reaches your Arduino by using a simple sketch you can find it bellow. Even after checking your picture attached, it mentioned that you are working on baudrate 9600 and 1Sheeld works on 115200 which makes also sense that the data we receive is junk.

    Finally you may confront also a simple problem is that how you can attach a floating number in the body of the email which it only accepts arrays of characters !! actually there are multiple helper function to do this job one of them called the sprintf   it will help you to convert it to string and then attach it to Email.send function. 

    so that was pretty much it if you still have any question please don’t hesitate to ask ūüėČ we are happy to help you out ūüôā .


    It was the one I am using before, but I guess some issues are just isolated, in my end however, I always wanted right upfront, avoiding any glitches and errors, so I always make sure to get other options right away, and that it where I got the service of

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.