Circuit works in opposite way
You’re using a PNP transistor that switches the high (positive) side of the load, and is switched on when the sensor output is low.  From your description you probably want an NPN transistor to switch the low (ground) side of the load; this will be switched on when the sensor output is high.  Otherwise keep the PNP and invert the sensor output using a (low power) transistor or inverter IC.