The minimum supply voltage is 3V, according to the data sheet, so I was wrong and it should be ok.
You could connect the Vcc of the sensor to 5V, but if you do that, connect the 5K to 3.3V, because the esp pins may not be 5V tolerant.