Turn off the power going to the dishwasher by unplugging the appliance from the wall outlet or turning off the circuit at the breaker box.
Open the door on the dishwasher and locate the screws on the bottom edge of the tub, near the door. Undo the screws, close the door and then pull off the kick plate, the outside panel under the door.
Locate the float switch on one side of the dishwasher behind where the kick plate was. Take note of how the wires sit on the switch, so you can reattach them to the new part. Remove the two wires and connectors from the float switch with needle-nose pliers.
Unscrew the switch from the side of the dishwasher and insert the replacement. Attach the wires to the new switch and reattach the kick plate. Turn the power back on and let the Bosch dishwasher run through one cycle to make sure the tub fills with water properly.