An infrared proximity sensor of this kind specifically is an awesome sensor that’s made from Sharp. It varies from 3.1V at 4cm to 0.3V at 30cm with a supply voltage between 4.5 and 5.5VDC regarding the analog output. The connector that it has is an actual JST connector, which means it’s a terminal that is solderless and Japanese! Highly recommended. Check out the pigtail below for wires to be soldered straight into the module.