For the easiest way possible to measure twists, turn to this STEMMA potentiometer breakout (ha!).
This plug-n-play pot comes with a JST-PH 2mm connector and a matching JST PH 3-Pin to Male Header Cables - 200mm, so wiring up is a cinch. Simply plug the cable in, then use the black wire to connect to your ground, white wire to the input/signal pin and the red wire to your power pin. The power pin voltage should match the voltage max of your analog input. So, if you're using a 5V Arduino or compatible, connect red to 5V. If you're using a 3V Feather board, tie red to 3V.
TECHNICAL DETAILS
PCB Dimensions: 28mm x 21mm
Potentiometer (L x W x H): 11.8mm x 10mm x 20mm