Bluetooth Serial Relay and push button.

The number 9 will never equal the number zero.

You forgot to read pin 9