The ABS sensor helps to detect if the wheels are moving at the same speed. There is a
tone ring inside the wheel hub and bearing assembly. This is just a ring with teeth in it like a gear but wider. The sensor is magnetic and reads the teeth of the tone ring passing by the magnetic end of the sensor. The spaces between the teeth are far enough away from the sensor that they read differently and this lets the computer measure the speed at which the hub is turning.
One of the failures involves the breakdown of metal parts inside the hub and bearing assembly. The breakdown results in metal shavings floating around inside the hub which tend to collect on the magnetic end of the sensor. Did you notice anything like that when you removed the old sensor to replace it? If so, you may want to pull the sensor end of the replacement and make sure that it has not become fouled with metal shavings. This is a pretty simple system, so if the sensor is clean and there is not a connection issue as Fix4Dirt suggests, it is hard to imagine what might be wrong at the hub to cause a failure. I think that the tone ring would have to be pretty badly damaged for it to not register with the sensor. The tone ring on the front wheels can't be replaced independent of the hub and bearing assembly since it is all factory pressed together.
If you used a quality part then I think that the likely issue would be wiring further up, meaning between the ABS sensor connection to the wire harness and the computer. Since you are not getting a code for the front right, you could switch the front sensors and see if the issue follows the new sensor or not. If it does, you might have replaced a bad sensor with a new bad sensor. Unfortunately it does happen sometimes.
Higher up wiring issues are a pain, so hopefully it's not.
LMHmedchem