I am using hall sensors to find the position of rotating shaft. In my environment there will be lot of vibrations, so if i arrange a set up as shown in the attachment, the magnet and hall sensor will keep on colliding each other and there might occur damage to the hall sensor (since the air gap between sensor and magnet is very less, approx 5mm). Please help me in arrangement technique of the hall sensor and the magnet..
That is why we are using plastic... We are not going to sense the plastic. If the magnetic wave is strong enough, the magnetic flux lines will penetrate the plastic & will reach the sensor. The plastic part is only used for protection...