You should flush in the proper order:
1. LSV air bleeder (4WD models only)
2. Left rear brake
3. Right rear brake
4. Left front brake
5. Right front brake
You can check the resistance of each wheel sensor to ensure it's within spec, see
BR-59. Have you also checked the wiring on both the sensor ends and the ABS unit? BR-34 shows the position of the ABS unit.
For P1140, swap the camshaft position sensors between the driver and passenger side. If the code becomes P1145, the sensor is bad and should be replaced. I replaced both of mine with Standard Motor Products SENSORS from Amazon a few years ago and they have been fine since.