The stop light switch senses whether the brake pedal is depressed or released, and send the signal to the ECU.