RA4 is an open drain when output but it'S not suppoose to give you any kind of shit while you're using Pull-ups. what about if you try on portB... sure it will do the same. In this case there's really something to initialize before the sensor works.