Clean the caps and connection to keep contamination out of reservoir.
Remove the brake fluid from the master cylinder reservoir.
Remove the connector.
Remove the fluid level switch from the reservoir. Use a pick or a thin tool in order to reach into the slot on the bottom of the reservoir. Compress the tabs while pulling out on the sensor.