It doesn`t need to be sophisticated. 2 ball bearings bolted together, an arm on one side and a rubber tube that connects end of bolt with shaft of sensor.
And some plate to hold it together.
Or as shown here: WAS housing for Honeywell RTY series - #2 by PeterSK