This is a 6-pin 1.5mm pitch connector which mates directly with the connector on the Sharp GP2Y1010AU0F (COM-09689) optical dust sensor.
A simple slide potentiometer can go a long way. Rated at 10KOhm and 0.1W. Comes with solder lug connections. The pot has an overall travel of 30mm and has two mounting holes on top. Dimensions: 9.5mm x 45mm.