Arduino to Pic Microcontroller interfacing

I'm using a simple Arduino to PIC microcontroller interface. Basically all I have is digital pin #2 on the arduino going HIGH so that the pin outputs 5V (i verified this by measuring that the output is 5V). When I connect this pin to a pin on the PIC microcontroller, that pin on the PIC microcontroller is not going HIGH like it's supposed to. The connection is simply a wire connecting the two pins. Any clue what could be the problem?

I am using the Uno R3

Update: I tried using one of the PWM pins on the arduino and it seems to work.

the gronds of the two controllers need to be connected if they aren't yet so you need two wires.

groundfungus:
the gronds of the two controllers need to be connected if they aren't yet so you need two wires.

The grounds are connected. The pic is just not responding to digital pin 2 (Non-pwm), but responds to digital pin 3 (pwm).

You have to make sure that the Arduino pin is configured as output, and the
PIC pin is configured as input.

oric_dan:
You have to make sure that the Arduino pin is configured as output, and the
PIC pin is configured as input.

I will check that. But I checked earlier and it was definitely sending a 5V signal from the pin.

yes it's configured as an output.

Well if the Arduino is outputting 5V, and you can measure it on the PIC pin using
a multimeter, then the problem is in the PIC software.