Simple DFPlayer Mini operation

I am very green at trying to program my own code and I'm looking to find what I'm missing in my code. I am trying to program a simple DFPlayer code but not having any luck in getting it working. I have tested my setup with DFRobot's sample code and it works fine.

#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;

int sound1 = 3;
int sound2 = 4;
int sound3 = 5;

void setup()
{
mySoftwareSerial.begin(9600);
Serial.begin(115200);

pinMode(sound1, INPUT);
pinMode(sound2, INPUT);
pinMode(sound3, INPUT);

myDFPlayer.volume(15); //Set volume value. From 0 to 30
myDFPlayer.outputDevice(DFPLAYER_DEVICE_SD);

}

void loop()
{
digitalRead(sound1);
if (sound1 = LOW)
{ myDFPlayer.pause();
}
else if (sound1 = HIGH)
{ myDFPlayer.play(1);
delay(1000);
}
digitalRead(sound2);
if (sound2 = LOW)
{ myDFPlayer.pause();
}
else if (sound2 = HIGH)
{ myDFPlayer.play(2);
delay(1000);
}
digitalRead(sound3);
if (sound3 = LOW)
{ myDFPlayer.pause();
}
else if (sound3 = HIGH)
{ myDFPlayer.play(3);
delay(1000);
}

}

all your code that has this:

if (sound1 = LOW)

is wrong. that is an assignment, not a comparison (==)

There are multiple instances of this through your code.

Thank you blh64, I read that in the tutorial and still didn't get that part right. I made the correction but I still am not getting a response when the corresponding pins are made high. Any help is appreciated.

#include "SoftwareSerial.h"
#include "DFRobotDFPlayerMini.h"

SoftwareSerial mySoftwareSerial(10, 11); // RX, TX
DFRobotDFPlayerMini myDFPlayer;

int sound1 = 3;
int sound2 = 4;
int sound3 = 5;

void setup()
{
mySoftwareSerial.begin(9600);
Serial.begin(115200);

pinMode(sound1, INPUT);
pinMode(sound2, INPUT);
pinMode(sound3, INPUT);

myDFPlayer.volume(15); //Set volume value. From 0 to 30

}

void loop()
{
if (digitalRead(sound1) == LOW)
{ myDFPlayer.pause();
}
else if (digitalRead(sound1) == HIGH)
{ myDFPlayer.play(1);
delay(1000);
}
if (digitalRead(sound2) == LOW)
{ myDFPlayer.pause();
}
else if (digitalRead(sound2) == HIGH)
{ myDFPlayer.play(2);
delay(1000);
}
if (digitalRead(sound3) == LOW)
{ myDFPlayer.pause();
}
else if (digitalRead(sound3) == HIGH)
{ myDFPlayer.play(3);
delay(1000);
}

}