Brake sensors are just simple sensors sensitive to magnetic fields, you glue one to the static part of your brake lever assembly, and on the lever itself next to the sensor you glue a magnet, pulling the brake moves the magnet away from the sensor and triggers the controller (when plugged in)...