Connect something to pin 0 and GND, when the sensor on the sender micro:bit is triggered, it should notify the computer and, if applicable, the receiver micro:bit.