Unusual braking issue with 2000 Ranger

Up until I am almost stopped the brakes work normally, BUT then the pedal goes soft and the antilock mechanism seems to kick in until I completely stop. This happens at a point when I am going less than 10 mph.

Whats going on? Could it be a sensor not working?