Double check the sensor pins are for the function they say they are.
It would not be the first time a sensor has had wrong labels printed on the pins.
You can usually trace the power and ground quite easily to another components sometimes even visually.
"similar" is not the same as "identical" so you may need to supply your own schematic if you have changed anything eg. board or pins etc.