this could be you're ABS sensor
faulty brake light switch (on pedal)
check the brake pedal switch
Under the dash, near the top of the brake pedal arm.
Check the stop light switch - usually located at the upper end of the brake pedal under dash area
The brake pedal has nothing to do with it. If air is in the system then bleed the brakes.
Check the brake light switch on the brake pedal
under the dash about 6inches above the brake pedal under the dash about 6 inches above the brake pedal
It is on a bracket next to the brake pedal.
On the bracket that the brake pedal pivots on.
brake switch located on the top of the brake pedal
Hardness in the brake pedal can because by low brake fluid. Air in the brake lines can also cause the pedal to push hard.
Check around brake pedal for something rubbing. If OK, I'd look into the master cylinder.