Problem with Arduino Nano's serial Monitor ( Wrong character shown)

I'm making a project with Arduino nano . But There is a problem with the serial monitor . I want the values 0,1 . But it shows me wrong characters. I attach a image of it. I have also checked the baud rate . But nothing happened. I try several times but failed to solve the problem. Pls help me...

#include <Servo.h>


Servo myServo ;
// Throttol button Variables 
int ThrottolButton = 3;
int value;
int relay = 7;
int led = 8 ;



// Emergancy Button Switch
int emerButton = 4 ;
int inLed = 5;
int value2;




void setup ()
{

  Serial.begin(9600);
  myServo.attach(6);

  // Throttol Button
  pinMode(emerButton, INPUT);
  pinMode(relay,OUTPUT);
  pinMode(led,OUTPUT);

  


  // Emer Button 
  pinMode (emerButton,INPUT);
  pinMode(inLed, OUTPUT);
}




void loop ()
{ 
  // Throttol  Switch
  value = digitalRead(ThrottolButton);
 
  Serial.println(value);
  
  if (value == 1) {
  digitalWrite(relay, HIGH);
  myServo.write(0);
  
  }


// Emer Switch
 value2 = digitalRead(emerButton);
 if (value2 == 0){
   //Serial.println("SomeOne in Danger");
   myServo.write(150);
   digitalWrite(led,LOW);
 }
 else {
  myServo.write(0);
  digitalWrite(led, HIGH);
 }
  

  
}

Always show us a good schematic of your proposed circuit.
Show us a good image of your ‘actual’ wiring.
Give links to components.

FYI


When reading your switches respond only when there is a change in switch state.

When I am running a simple code for a serial print it doesn't working . The problem is not with the code or circuit .

Post your simple code. Why are you posting the complex code if it is a completely different simple code that has the problem? Show a minimal representative example that shows the “error”

Your pictures do not load for me. Copy and paste into code tags from serial monitor is preferable

Hi,
what do you expect this line to print?

For test only, try this way : Serial.println(value,HEX);

Unfortunately it is not working.
I'm expecting the digital values 0 & 1.

void setup()
{
Serial.begin(9600);
}

void loop () 
{
Serial.println("Hello");
delay (1000);
}

But this simple code doesn't working .

Unfortunately it is not working.
I'm expecting the digital values 0 & 1.

Try a different NANO.

What do you mean not working. What are you getting on the serial monitor? Are you at the same baud rate. You need to be more descriptive “it is not working” is not an adequate description

I suspect a mismatch in the baudrate. Try different baudrates; with a baudrate of 9600 in the sketch, first try 4800 and 19200. If one works, let us know which one, else repeat with half / double that (2400 and 38400). repeat till you found something that works.

Let us know. Once we know, we might be able to advise on the cause and a possible solution.

When you load blink, is the LED one second off and one second on? Or e.g. 2 seconds on and 2 seconds off or .5 seconds on or .5 seconds off.

I tried several times with different baud rates . But Still it printed wrong numbers. But the led blinking code was working properly but I attached a servo motor that wasn't working.....

When you upload the code from reply #8 and set the baud rate of the Serial monitor to 9600 what actually prints ?

Wrong characters like "xfxfxfxf.."

Is that what it actually prints or is that only something like it prints ?

Try printing "ABCDE" and post the actual output

this time it is printing different wrong characters ...

I tried a different one , but couldn't work.

In post 17, you init to 9600, but your serial monitor is at 4800. That will print garbage.

Always set your monitor to the baud you used in INIT. All other possibilities won't work.