How to make NXT bricks communicate information?
You can use the Bluetooth mailbox feature to pass messages back and forth between 2 NXTs.

If you want to use sensors, you could use the HiTechnic NXT IRLink Sensor (NIL1046) and NXT IRReceiver Sensor (NIR1032).