There should be a switch that the brake pedal activates when pushed in that switch is most likely going bad should be an easy fix
open