WARNING: This page is about a different car, the 2005 Nissan Titan. However, it is still accessible from the selected car via links, so may be relevant.
Check continuity between terminals of the stop lamp switch.
STOP LAMP SWITCH CONTINUITY
Condition
Terminal No. (Wire color)
Continuity
When brake pedal is depressed
1 (R/Y) - 2 (R/G)
Yes
When brake pedal is released
No
Check stop lamp switch after adjusting brake pedal.