What is the sensor on side of master cylinder?
That sensor on the side of the master cylinder is most likely a brake fluid level sensor. It monitors the amount of brake fluid in the reservoir and can trigger a warning light on the dashboard if the level gets too low.