Removing Unknown Words

Can anyone enlighten me how to remove the chunk of words in the black box?

I have attached the coding I tried below:

/*------------------------------------------------------------------------------------------------------------------------*/
#define ANALOG_PIN A0 // Analog pin
#define PANEL_LENGTH 60 // Length of the active part of solar panel in mm
#define PANEL_WIDTH 20 // Width of the active part of solar panel in mm
#define eff_pc 20 // per cent efficiency of solar panel

//Analog input pin assignments
#define VrefPin 3    // pin A3 - the pin our reference is connected to
#define VxPin 0       // use will use analog pin 0 for voltage x


// for voltage conversion
float vRef = 3.390; // the accurate value of your reference eg 4.096
/* *** change the value to match the reference voltage you are using  ***  */
long nX, nRef; //the value we read from the ADC
float vX;  //measured voltage values after calibration correction

// sampling parameters
int nSamp = 5;   // Number of Samples to take for each reading
int interval = 7; //milliseconds interval between successive readings

float res = 1000;  //resistance in OHMS
volatile float Area;
volatile float Power;
volatile float Radiation;

//take a set of "count" readings from selected analog input, with a delay of "pause" between readings.
long readInput(int pin, int count, int pause) {
 long n = analogRead( pin); // dummy read
 n = 0; // initialise for aggregation
 delay(pause);
 for (int i = 0; i < count; i++ ) {
   n += analogRead( pin);
   delay(pause); //short delay between readings - could use millis instead
 }
 return n ; //returns a number count * reading
}

// Convert the number reading to voltage
float convReadings(long nZ, long nR, float vR)
{
 float ztrue = (vR * nZ) / nR; //apply correction
 ztrue*=1000; //convert to mV
 return (ztrue); //return the result as a voltage
}

/*
 Main Setup function
*/

void setup() {
 // Begin serial communication
 Serial.begin(115200);
 analogReference(DEFAULT);    // program is being tested on a 5V Arduino Nano so this will be ROUGHLY 5.0V; as measured on mine 4.65V
 nRef = analogRead(VrefPin); // dummy read to settle ADC Mux
 Serial.print("starting measurement - nRef is ");
 Serial.println(nRef);
 Serial.println();
 delay(5);
}

void loop() {
 Area = PANEL_LENGTH * PANEL_WIDTH; //in mm square - keep numbers big for better accuracy
 Serial.print("Area is ");
 Serial.print(Area);
 Serial.println(" uM");
 nX = readInput(VxPin, nSamp, interval);
 Serial.print("nX is ");
 Serial.print(nX);
 nRef = readInput(VrefPin, nSamp, interval);
 Serial.print(";  nRef is ");
 Serial.print(nRef);
 vX = convReadings(nX, nRef, vRef); //vX is now the measured voltage at VxPin
 Serial.print(";  Vx is ");
 Serial.print(vX, 0);
 Serial.println(" millivolts");
 Serial.println();
 Power = vX * vX / res ; // Calculating power v^2 / R in microWatts
 Power /=1000;
 Radiation = Power / Area; //mW/mm^2
 Radiation *=1000; //W/m^2
 Radiation  *= 100/eff_pc; //correct for panel efficiency
 Serial.print("Power is ");
 Serial.print(Power);
 Serial.println(" mW");
 Serial.print("Radiation is ");
 Serial.print(Radiation);
 Serial.println(" W / m2 ");
 Serial.println();

 delay(1000);
}

priscillayap:
Can anyone enlighten me how to remove the chunk of words in the black box?

By setting the data rate to 115200 baud in your serial monitor window to match your sketch?

As previously advised, please follow the advice on posting a programming question given in Read this before posting a programming question

In particular note the advice to Auto format code in the IDE and to use code tags when posting code and/or error messages here

arduarn: By setting the data rate to 115200 baud in your serial monitor window to match your sketch?

thanks a lot appreciate it!!