How do you replace a bad brake switch sensor? on 2007 Dodge Caliber

Car does not shift out of park, bad brake switch

Asked by for the 2007 Dodge Caliber
shift solenoid could be bad fuse or brk light switch. start by ck'ing fuses and see if brk lights work,if so poss shift lock solenoid is bad. try