Using PWM to communicate between ATTiny85s
The analog read should yield the same adv number if the reference is set to vdd.

Pulsein should also give the same results.

The issue is likely your code or wiring.