If, when you changed the sensor you left some dirt or the sensor is/was dirty that will effect its reliability, otherwise track and check the sensor cable back from the sensor in the hub through the inner arch and along to the ABS brain.
Also if the sensor you put back in isn't new and is even slightly dinked then that could be your problem.
Also if the sensor you put back in isn't new and is even slightly dinked then that could be your problem.