Use a hall effect sensor, two magnets seperated for forward, single magnet for reverse. Two pulses would then indicate forward, one for reverse. Key is the be able to see both pulses (so depends on speed of the motor). If its running too fast, then you won't see em both. Otherwise, if this motor is be controlled from a starter, then use an aux contact and feed it to the pic.