Having issue with serial COM port Arduino Uno

hi guys, so i am working on my project related to IoT monitoring of LM35 temperature sensor, i will have to display the temperature value to Blynk app via serial USB of arduino uno…

now i tried the most basic for serial USB example which is controlling a LED thru blynk app, it’s of course successful. Before connecting to Blynk for IoT, i can see the serial output at serial monitor at arduino IDE
but now after combining my code with the basic Blynk LED control example in the Blynk libraries, my overall code is as shown below ( it can be succesfully compiled but not uploaded)

#include <SoftwareSerial.h>
SoftwareSerial DebugSerial (0, 1); //RX , TX
#define BLYNK_PRINT DebugSerial
#include <BlynkSimpleStream.h>

char auth [] = "My auth token";
Declare the variables
int temp;
int temppin = 5;
int led1 = 7;
int led2 = 6;

void setup ()
{
  DebugSerial.begin(9600);
  Serial.begin(9600);
  Blynk.begin(auth, Serial);



  pinMode(led1, OUTPUT);
  pinMode(led2, OUTPUT);
}

  void loop()
{
  temp = analogRead(temppin);
  float t = (temp / 1024.0) * 5000;
  float celsius = t / 10; //Celsius Temperature
  Serial.print("Temperature =");
  Serial.print(celsius);
  Serial.print("°C");
  Serial.println();
  delay(1000);
  if (celsius > 30)
  {
    digitalWrite(led2, HIGH);
    digitalWrite(led1, LOW);
  }
  else
  {
    digitalWrite(led2, LOW);
    digitalWrite(led1, HIGH);
  }
  if (celsius < 30)
  {
    digitalWrite(led1, HIGH);
    digitalWrite(led2, LOW);
  }
  else
  {
    digitalWrite(led2, HIGH);
    digitalWrite(led1, LOW);
  }

  {
    Blynk.run();
  }

}

i keep on getting error like when i tried to open serial monitor

Error opening serial port ‘COM5’. (Port busy)

and when i tried to change baud rate at serial monitor it give

processing.app.SerialException: Error opening serial port ‘COM5’.

i am not able to get the output display at Blynk app.

is it multiple serial usb not allowed? how should i solve it :o :frowning:

Can anyone help me?

Pins 0 and 1 is hardware serial. What in the heck are you doing ? ? ?

ieee488: Pins 0 and 1 is hardware serial. What in the heck are you doing ? ? ?

i really have no experience in this but someone suggested me to change from

SoftwareSerial DebugSerial(2, 3); // RX, TX

to

pin 0 and 1...so i did ..hmm i am still confusing at all now

sorry if my question made u furious over my stupidity ,sorry..

SOSPleaseHelp: i really have no experience in this but someone suggested me to change from

SoftwareSerial DebugSerial(2, 3); // RX, TX

to

pin 0 and 1...so i did ..hmm i am still confusing at all now

sorry if my question made u furious over my stupidity ,sorry..

I am no "furious". I am extremely confused.

Apparently your Arduino is no longer at COM5. Where it is only you would know.

ieee488:
I am no “furious”. I am extremely confused.

Apparently your Arduino is no longer at COM5. Where it is only you would know.

my arduino is showing at com5 , why it is not? i check thru device manager also showing com5

Reboot your PC and see what happens.

I have used Blynk before. I have not encountered the issue you are having.

There is probably something else at play. Don't know.