How would I use a rotary encoder without housing?
Looks like it's an AS5600. You just need a magnet positioned above it, there are Hall sensors inside, that are compared for strength in two axes and the position calculated (the arctan of the ratio of the two).

There's an eval kit from the manufacturer, which shows the mechanical arrangement for its intended use - volume controls or rotary switches.