Under features, note that it says "Digital output signal" and in the schematic there is a Schmitt-Trigger. That means that the sensor will output only LOW or HIGH, no analog signal. You simply can not get an analog signal from the sensor no matter the code.