2000 bmw 323i brake light on?

My brake light came on I think its the brake sensor. I just looked at the brakes and took them apart and and found out the rear brakes are worn down to the sensor and the light wont go out,.I replaced the rear breaks and sensor and the light is still on.Whats the problem
4 answers 4