If one unit is sending status data and the other receiving it how can you run the same code on both units? When both units start at the same time what is to stop them both being the sending unit?
If you just want one way communication create a sending sketch and a different receiving sketch.
If you want two way communication you will need to have two addresses, one for each unit.