Bluetooth Serial Relay and push button.

Look at your code.
The only way pin 9 gets read is if Serial.available returns a non-zero value.
I can't tell if that is what you intended