function SOS(a,EER, EER_Expected)
% Purpose: Determine if the EER value in a room is what it should
% be based on heat pump/ AC unit.
% Inputs: a (arduino board connection), temp(chosen temperature; could be
% max, average, min, etc.)
% Result: Plays the message SOS through the Piezo Buzzer if the temperature
% value statement is true. 
Percent_diff = ((abs(EER - EER_Expected))./ EER).*100
if Percent_diff > 5
    playTone(a,'D10',1800,0.1)
    pause(1)
    playTone(a,'D10',1800,0.1)
    pause(1)
    playTone(a,'D10',1800,0.1)
    pause(1)
    playTone(a,'D10',1800,1)
    pause(1.5)
    playTone(a,'D10',1800,1)
    pause(1.5)
    playTone(a,'D10',1800,1)
    pause(1.5)
    playTone(a,'D10',1800,0.1)
    pause(1)

    playTone(a,'D10',1800,0.1)
    pause(1)

    playTone(a,'D10',1800,0.1)
    pause(1)
    lcd = addon(a,'ExampleLCD/LCDAddon',{'D7','D6','D5','D4','D3','D2'});
    initializeLCD(lcd, 'Rows', 2, 'Columns', 16);
    printLCD(lcd, 'Check Air Unit.');
end