First: your forgot the code tags around your code.
I guess you mean transmitter by the word "transistor", so one Arduino sends information, the other receives it. But as far as I can see in your setup you don't have a connection between the two. How do you plan to transmit any information?
The easiest is a serial connection, you loose the debugging capability but as the rest of the code works already this shouldn't be that critical. So connect the two GNDs and the pins D0/D1 crossed and you can use the Serial object to send/receive data from the other Arduino.