There is no brake light sensor. There is however a brake light switch. It may be mechanical, which would be located somewhere on the brake pedal lever. It can be bad or just out of adjustment. It can also be a pressure switch located on the master cylinder.