LOVE0METER Error Message 'class HardwareSerial' has no member named 'print1n'

I had several errors, but the last one I can't figure out. I looked at the youtube video but it the sketch is different from the book i purchased and cannot find anything on it. Any help is appreciated. The errors are at the bottom. Thanks!

const int sensorPin = A0;
const float baselineTemp = 20.0;
void setup() {
  Serial.begin(9600);//open a serial port
  for(int pinNumber = 2; pinNumber<5; pinNumber++){
    pinMode(pinNumber,OUTPUT);
    digitalWrite(pinNumber, LOW);
  }
}
void loop(){
  // put your main code here, to run repeatedly:
  int sensorVal = analogRead(sensorPin);
  Serial.print("Sensor Value:");
  Serial.print(sensorVal);
  //convert the ADC reading to voltage
  float voltage = (sensorVal/1024.0) * 5.0;
  Serial.print(", Volts:");
  Serial.print(voltage);
  Serial.print(",degrees C:");
  //convert the voltage to temperature in degrees
  float temperature = (voltage - .5) * 100;
  Serial.print1n(temperature) ;
  if(temperature < baselineTemp){
    digitalWrite(2,LOW)
    digitalWrite(3,LOW)
    digitalWrite(4,LOW)
  }esle if(temperature >= baselineTemp+2 &&
    temperature < baselineTemp+4){
    digitalWrite(2,HIGH);
    digitalWrite(3,LOW);
    digitalWrite(4,LOW);
  }else if(temperature >= baselineTemp+4 &&
    temperature < baselineTemp+6){
      digitalWrite(2,HIGH);
      digitalWrite(3,HIGH);
      digitalWrite(4,LOW);
  }else if(temperature >= baselineTemp+6){
      digitalWrite(2,HIGH);
      digitalWrite(3,HIGH);
      digitalWrite(4,HIGH);
  }
  delay(1);
}
    
  }

}

LoveMeter.ino: In function 'void loop()':
LoveMeter:22: error: 'class HardwareSerial' has no member named 'print1n'
LoveMeter:25: error: expected ';' before 'digitalWrite'
LoveMeter:27: error: 'esle' was not declared in this scope
LoveMeter:27: error: expected ';' before 'if'
LoveMeter:32: error: 'else' without a previous 'if'
LoveMeter.ino: At global scope:
LoveMeter:45: error: expected declaration before '}' token
'class HardwareSerial' has no member named 'print1n'

that's the number one (1), not an 'l"

you have typed "Serial.print1n". Change it to "Serial.println"

oh, and change "esle" to "else"

1. It's 'println()', not 'print1n(); - done

  1. You didn't end these lines with a semicolon:-
digitalWrite(2,LOW)
digitalWrite(3,LOW)
digitalWrite(4,LOW)

3. Take a good look at this and you'll work it out:- - done

LoveMeter:27: error: 'esle' was not declared in this scope
  1. You have two extra closing curly brackets at the end of your code.

You beat me to 1 and 3, @arduinodlb. :slight_smile: