HELP! About Bluetooth and Analog switch!

So, 1.press switch 2. send data via bluetooth 3.receive data other arduino 4.then turn on led.

What happens when you run the programs ?
Are the key values correctly derived in the master code ? Are the converted values correctly received in the slave code ? Where is the Serial input coming from in the master ? Is there ever any Serial data available ?