Logic NOT gate only works with Oscilloscope probe connected
Look at the sensor's output stage in the datasheet.  It is an open drain output on the high side.  This means that its output is either high or floating.  The pull-down resistor resolves the floating state, and that is why hooking the probe to it makes it work.