Need help in trying to get calibration from 0 to 359 with LSM303DLH breakout

hi, so is this the right section to post for help request.

A help would be appreciated greatly.

So here is the code that I’m trying to run below

#include <LSM303DLH.h>
#include <Wire.h>



LSM303DLH compass;

void setup() {
  Serial.begin(9600);
  Wire.begin();
  compass.enableDefault();
}


//void LSM303DLH::calibrate(void)

void loop() {
  
      compass.calibrate();
      compass.read();

	int respond = 0;
	
	Serial.println("Hit any key when ready to calibrate.");
	//wait till R is pressed
	while ( respond == 0)
		{
		while (Serial.available()==0);; 


		while (Serial.available()>0)
			{
		 	respond = Serial.read();
 			}
		}
       

	Serial.println("Rotate board until Min and Max values are reched for all axis.");
        Serial.println("WHen calibration done press D...");
		 delay(3000);

	while (respond != 100) 	
	    {
	
                 while (Serial.available()==0)
                   {
                     
		 //Loop till D is pressed

		 compass.read();
  	
   		if (compass.m.x > compass.m_max.x)
    	 	 {
     	 	  compass.m_max.x = compass.m.x;
   	 	 }
  		if (compass.m.y > compass.m_max.y)
    	 	 {
      	 	  compass.m_max.y = compass.m.y;
    	 	 }
   		if (compass.m.z > compass.m_max.z)
    		 {
    	 	  compass.m_max.z = compass.m.z;
    	 	 }
   		if (compass.m.x < compass.m_min.x)
    	 	 {
     	 	  compass.m_min.x = compass.m.x;
    	 	 }
    
    		if (compass.m.y < compass.m_min.y)
    	 	 {
      		  compass.m_min.y = compass.m.y;
    	 	 }
    
    		if (compass.m.z < compass.m_min.z)
    	 	 {
      		 compass.m_min.z = compass.m.z;
    	 	 }
		//Display results
  
  /////////////
     		if (compass.a.x > compass.a_max.x)
    	 	 {
     	 	  compass.a_max.x = compass.a.x;
   	 	 }
  		if (compass.a.y > compass.a_max.y)
    	 	 {
      	 	  compass.a_max.y = compass.a.y;
    	 	 }
   		if (compass.a.z > compass.a_max.z)
    		 {
    	 	  compass.a_max.z = compass.a.z;
    	 	 }
   		if (compass.a.x < compass.a_min.x)
    	 	 {
     	 	  compass.a_min.x = compass.a.x;
    	 	 }
    
    		if (compass.a.y < compass.a_min.y)
    	 	 {
      		  compass.a_min.y = compass.a.y;
    	 	 }
    
    		if (compass.a.z < compass.a_min.z)
    	 	 {
      		 compass.a_min.z = compass.a.z;
    	 	 }
  ////////
  
  	 	
	 	Serial.print("Maxx: ");
  		Serial.print(compass.m_max.x);
  		Serial.print(" MaxY: ");
  		Serial.print(compass.m_max.y);
 		Serial.print(" MaxZ: ");
  	 	Serial.print(compass.m_max.z);
   
  	 	Serial.print("Minx: ");
 	 	Serial.print(compass.m_min.x);
  	 	Serial.print(" MinY: ");
  	 	Serial.print(compass.m_min.y);
  	 	Serial.print(" MinZ:: ");
 	 	Serial.println(compass.m_min.z);

///////
	 	Serial.print("Maxx: ");
  		Serial.print(compass.a_max.x);
  		Serial.print(" MaxY: ");
  		Serial.print(compass.a_max.y);
 		Serial.print(" MaxZ: ");
  	 	Serial.print(compass.a_max.z);
   
  	 	Serial.print("Minx: ");
 	 	Serial.print(compass.a_min.x);
  	 	Serial.print(" MinY: ");
  	 	Serial.print(compass.a_min.y);
  	 	Serial.print(" MinZ:: ");
 	 	Serial.println(compass.a_min.z);
////////
	 
             }
               while (Serial.available()>0)
			{
		 	respond = Serial.read();
   			}
               
         }

	//D pressed -> end loop
	Serial.println("DONE");
	delay(2000);

	}

so far, there is no error and it successfully uploaded to the Arduino Uno board and I even set up the circuit connections properly with LSM303DLH breakout (from sparkfun) and using the logic level converter.

So the problem is nothing is showing up in my terminal window session…

why is that?

is there a problem with what I’m doing or supposed to do something?

So the problem is nothing is showing up in my terminal window session

What not even the :- Hit any key when ready to calibrate.

void setup() {
  Serial.begin(9600);
  Serial.println ("Serial");
  Wire.begin();
  Serial.println ("Wire");
  compass.enableDefault();
  Serial.println ("compass");
}

And now?

^
it successfully printed out “Serial” , “Wire”, “compass”

but I don’t know why it did not print me on the first code.